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:
697692a
)
Fix a bug in my change last night that caused a few test failures.
author
Chris Lattner
<sabre@nondot.org>
Sun, 20 Jun 2004 17:01:44 +0000
(17:01 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 20 Jun 2004 17:01:44 +0000
(17:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14270
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 10d9be6d4d26ff68fad01de89c087f6990b8a924..2356412b5ac5f969de6276d6e371414c0c7b0ae9 100644
(file)
--- a/
lib/Analysis/ScalarEvolution.cpp
+++ b/
lib/Analysis/ScalarEvolution.cpp
@@
-365,7
+365,7
@@
static void GroupByComplexity(std::vector<SCEVHandle> &Ops) {
// complexity. Note that this is, at worst, N^2, but the vector is likely to
// be extremely short in practice. Note that we take this approach because we
// do not want to depend on the addresses of the objects we are grouping.
- for (unsigned i = 0, e = Ops.size(); i != e-
1
; ++i) {
+ for (unsigned i = 0, e = Ops.size(); i != e-
2
; ++i) {
SCEV *S = Ops[i];
unsigned Complexity = S->getSCEVType();