Back out 60748 for now. It's breaking SPASS, 254.gap, and 464.h264ref.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 9 Dec 2008 18:21:49 +0000 (18:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 9 Dec 2008 18:21:49 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60776 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index c9af6de79d9e35d1e685ea6d4eeb7a7ac591af9b..2b714de3b3fac130bb8c2edb6d2c4fced74a79fa 100644 (file)
@@ -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();