forked from OSchip/llvm-project
Back out 60748 for now. It's breaking SPASS, 254.gap, and 464.h264ref.
llvm-svn: 60776
This commit is contained in:
parent
74a24b260e
commit
8f81e4e31b
|
@ -2924,12 +2924,8 @@ bool ScalarEvolutionsImpl::potentialInfiniteLoop(SCEV *Stride, SCEV *RHS,
|
|||
if (!R)
|
||||
return true;
|
||||
|
||||
if (isSigned) {
|
||||
if (SC->getValue()->isOne())
|
||||
return R->getValue()->isMaxValue(true);
|
||||
|
||||
if (isSigned)
|
||||
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.
|
||||
APInt S = SC->getValue()->getValue().abs();
|
||||
|
|
Loading…
Reference in New Issue