llvm.org GIT mirror llvm / afc7d23
Be explicit with abs(). Visual Studio workaround. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127075 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 8 years ago
1 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
22562256 return left->getHeight() > right->getHeight();
22572257 }
22582258
2259 if (!DisableSchedCriticalPath
2260 && abs((long)left->getDepth() - right->getDepth()) > MaxReorderWindow) {
2261 DEBUG(++FactorCount[FactDepth]);
2262 return left->getDepth() < right->getDepth();
2259 if (!DisableSchedCriticalPath) {
2260 int spread = (int)left->getDepth() - (int)right->getDepth();
2261 if (std::abs(spread) > MaxReorderWindow) {
2262 DEBUG(++FactorCount[FactDepth]);
2263 return left->getDepth() < right->getDepth();
2264 }
22632265 }
22642266
22652267 if (!DisableSchedHeight && left->getHeight() != right->getHeight()) {