projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eaee31
)
(re)fix handling of UGT. Pointed out by Nick Lewycky.
author
Dale Johannesen
<dalej@apple.com>
Sun, 20 Apr 2008 16:58:57 +0000
(16:58 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Sun, 20 Apr 2008 16:58:57 +0000
(16:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49991
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ScalarEvolution.cpp
b/lib/Analysis/ScalarEvolution.cpp
index 32e9e96a6d8acc275590f791631ae8b973a94764..0a58f2b629d0d8253479ed8c007b323843fefddb 100644
(file)
--- 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;
}