1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Fix a bug in my change last night that caused a few test failures.

llvm-svn: 14270
This commit is contained in:
Chris Lattner 2004-06-20 17:01:44 +00:00
parent fb800c656c
commit 59d13ac701

View File

@ -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();