mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +00:00
REALLY fix PR378: crash in scalar evolution analysis
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec86a7af52
commit
541ad5e19e
@ -376,6 +376,7 @@ static void GroupByComplexity(std::vector<SCEVHandle> &Ops) {
|
||||
// Move it to immediately after i'th element.
|
||||
std::swap(Ops[i+1], Ops[j]);
|
||||
++i; // no need to rescan it.
|
||||
if (i == e-2) return; // Done!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user