diff options
author | Dale Johannesen <dalej@apple.com> | 2008-04-20 16:58:57 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-04-20 16:58:57 +0000 |
commit | a0c8fc6f28808a6b859d45c7e2d3391e3e8d2963 (patch) | |
tree | 90a5702b16c7a43b6c2c3fd1fe91c3c1d4e401e3 | |
parent | 3eaee313937ea4794eb58cc4d286a57ef1727f3c (diff) |
(re)fix handling of UGT. Pointed out by Nick Lewycky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49991 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 32e9e96a6d..0a58f2b629 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1980,7 +1980,8 @@ SCEVHandle ScalarEvolutionsImpl::ComputeIterationCount(const Loop *L) { 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; } |