Be explicit with abs(). Visual Studio workaround.
llvm-svn: 127075
This commit is contained in:
parent
250c357ce7
commit
25cedf3fe4
|
@ -2257,11 +2257,13 @@ bool ilp_ls_rr_sort::operator()(SUnit *left, SUnit *right) const {
|
||||||
return left->getHeight() > right->getHeight();
|
return left->getHeight() > right->getHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DisableSchedCriticalPath
|
if (!DisableSchedCriticalPath) {
|
||||||
&& abs((long)left->getDepth() - right->getDepth()) > MaxReorderWindow) {
|
int spread = (int)left->getDepth() - (int)right->getDepth();
|
||||||
|
if (std::abs(spread) > MaxReorderWindow) {
|
||||||
DEBUG(++FactorCount[FactDepth]);
|
DEBUG(++FactorCount[FactDepth]);
|
||||||
return left->getDepth() < right->getDepth();
|
return left->getDepth() < right->getDepth();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!DisableSchedHeight && left->getHeight() != right->getHeight()) {
|
if (!DisableSchedHeight && left->getHeight() != right->getHeight()) {
|
||||||
DEBUG(++FactorCount[FactHeight]);
|
DEBUG(++FactorCount[FactHeight]);
|
||||||
|
|
Loading…
Reference in New Issue