mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +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,10 +2257,12 @@ 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();
|
||||||
DEBUG(++FactorCount[FactDepth]);
|
if (std::abs(spread) > MaxReorderWindow) {
|
||||||
return left->getDepth() < right->getDepth();
|
DEBUG(++FactorCount[FactDepth]);
|
||||||
|
return left->getDepth() < right->getDepth();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DisableSchedHeight && left->getHeight() != right->getHeight()) {
|
if (!DisableSchedHeight && left->getHeight() != right->getHeight()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user