diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-12-09 18:21:49 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-12-09 18:21:49 +0000 |
| commit | 8f81e4e31b810971ba8c422733b29e9d157ed1b4 (patch) | |
| tree | dba237c4a8aebf3bc57bbc33ac2f712417eaf79e | |
| parent | 74a24b260e9f8ea1dc6a4b67bc63ebbe21bcd6be (diff) | |
| download | bcm5719-llvm-8f81e4e31b810971ba8c422733b29e9d157ed1b4.tar.gz bcm5719-llvm-8f81e4e31b810971ba8c422733b29e9d157ed1b4.zip | |
Back out 60748 for now. It's breaking SPASS, 254.gap, and 464.h264ref.
llvm-svn: 60776
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index c9af6de79d9..2b714de3b3f 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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(); |

