[llvm-commits] [llvm] r49991 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Dale Johannesen
dalej at apple.com
Sun Apr 20 09:58:57 PDT 2008
Author: johannes
Date: Sun Apr 20 11:58:57 2008
New Revision: 49991
URL: http://llvm.org/viewvc/llvm-project?rev=49991&view=rev
Log:
(re)fix handling of UGT. Pointed out by Nick Lewycky.
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=49991&r1=49990&r2=49991&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Sun Apr 20 11:58:57 2008
@@ -1980,7 +1980,8 @@
break;
}
case ICmpInst::ICMP_UGT: {
- SCEVHandle TC = HowFarToZero(SE.getMinusSCEV(LHS, RHS), L);
+ SCEVHandle TC = HowManyLessThans(SE.getNotSCEV(LHS),
+ SE.getNotSCEV(RHS), L, false);
if (!isa<SCEVCouldNotCompute>(TC)) return TC;
break;
}
More information about the llvm-commits
mailing list