forked from OSchip/llvm-project
REALLY fix PR378: crash in scalar evolution analysis
llvm-svn: 14275
This commit is contained in:
parent
ca578611cc
commit
baaed7ee90
|
@ -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…
Reference in New Issue