mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Be explicit with abs(). Visual Studio workaround.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9869c2f717
commit
afc7d235e9
@ -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…
x
Reference in New Issue
Block a user