[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Jun 20 12:09:01 PDT 2004
Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.19 -> 1.20
---
Log message:
Fix a bug in my change last night that caused a few test failures.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.19 llvm/lib/Analysis/ScalarEvolution.cpp:1.20
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.19 Sun Jun 20 01:23:15 2004
+++ llvm/lib/Analysis/ScalarEvolution.cpp Sun Jun 20 12:01:44 2004
@@ -365,7 +365,7 @@
// 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();
More information about the llvm-commits
mailing list