mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[LV] Replace some dead code with an assert. When I first ported this
pass from a loop pass to a function pass I did so in the naive, recursive way. It doesn't actually work, we need a worklist instead. When I switched to the worklist I didn't delete the naive recursion. That recursion was also buggy because it was dead and never really exercised. llvm-svn: 204184
This commit is contained in:
parent
40adcd40e2
commit
4ac3e74751
@ -1067,8 +1067,8 @@ struct LoopVectorize : public FunctionPass {
|
||||
// We only handle inner loops, so if there are children just recurse.
|
||||
if (!L->empty()) {
|
||||
bool Changed = false;
|
||||
for (Loop::iterator I = L->begin(), E = L->begin(); I != E; ++I)
|
||||
Changed |= processLoop(*I);
|
||||
for (Loop *InnerL : *L)
|
||||
Changed |= processLoop(InnerL);
|
||||
return Changed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user