aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-12-09 18:21:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-12-09 18:21:49 +0000
commita9d50c00f1a9976cf183290e72d58bc4b607edd2 (patch)
tree8461b6f5cf39c1fa74f7495c160c51172e06dcb0 /lib/Analysis
parentf84802880c5ae7aed88f9aac27ec66a1d017707f (diff)
downloadexternal_llvm-a9d50c00f1a9976cf183290e72d58bc4b607edd2.zip
external_llvm-a9d50c00f1a9976cf183290e72d58bc4b607edd2.tar.gz
external_llvm-a9d50c00f1a9976cf183290e72d58bc4b607edd2.tar.bz2
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
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index c9af6de..2b714de 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -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();