diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-20 17:01:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-20 17:01:44 +0000 |
commit | 6bfca8f5f1e05029304cb4d53479b3c829d987e1 (patch) | |
tree | 60ca704aa0469d2934fbe031404c70833db7f9f3 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | 5004e09ad247928181183994dd292018bbd6a20c (diff) | |
download | bcm5719-llvm-6bfca8f5f1e05029304cb4d53479b3c829d987e1.tar.gz bcm5719-llvm-6bfca8f5f1e05029304cb4d53479b3c829d987e1.zip |
Fix a bug in my change last night that caused a few test failures.
llvm-svn: 14270
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 10d9be6d4d2..2356412b5ac 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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(); |