mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Back out 60748 for now. It's breaking SPASS, 254.gap, and 464.h264ref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60776 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f84802880c
commit
a9d50c00f1
@ -2924,12 +2924,8 @@ bool ScalarEvolutionsImpl::potentialInfiniteLoop(SCEV *Stride, SCEV *RHS,
|
|||||||
if (!R)
|
if (!R)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (isSigned) {
|
if (isSigned)
|
||||||
if (SC->getValue()->isOne())
|
|
||||||
return R->getValue()->isMaxValue(true);
|
|
||||||
|
|
||||||
return true; // XXX: because we don't have an sdiv scev.
|
return true; // XXX: because we don't have an sdiv scev.
|
||||||
}
|
|
||||||
|
|
||||||
// If negative, it wraps around every iteration, but we don't care about that.
|
// If negative, it wraps around every iteration, but we don't care about that.
|
||||||
APInt S = SC->getValue()->getValue().abs();
|
APInt S = SC->getValue()->getValue().abs();
|
||||||
|
Loading…
Reference in New Issue
Block a user