mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix a bug in my change last night that caused a few test failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
697692a009
commit
2d58452f39
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user