return left->getHeight() > right->getHeight();
}
- if (!DisableSchedCriticalPath
- && abs((long)left->getDepth() - right->getDepth()) > MaxReorderWindow) {
- DEBUG(++FactorCount[FactDepth]);
- return left->getDepth() < right->getDepth();
+ if (!DisableSchedCriticalPath) {
+ int spread = (int)left->getDepth() - (int)right->getDepth();
+ if (std::abs(spread) > MaxReorderWindow) {
+ DEBUG(++FactorCount[FactDepth]);
+ return left->getDepth() < right->getDepth();
+ }
}
if (!DisableSchedHeight && left->getHeight() != right->getHeight()) {