[llvm-commits] [llvm] r60776 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Evan Cheng
evan.cheng at apple.com
Tue Dec 9 10:21:50 PST 2008
Author: evancheng
Date: Tue Dec 9 12:21:49 2008
New Revision: 60776
URL: http://llvm.org/viewvc/llvm-project?rev=60776&view=rev
Log:
Back out 60748 for now. It's breaking SPASS, 254.gap, and 464.h264ref.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=60776&r1=60775&r2=60776&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Tue Dec 9 12:21:49 2008
@@ -2924,12 +2924,8 @@
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();
More information about the llvm-commits
mailing list