mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Eliminate duplicate phi nodes in loops. Loop rotation, for example, can introduce these, and it's beneficial to later passes to clean them up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20f4d34fe3
commit
d0b552cc56
@ -305,6 +305,12 @@ ReprocessLoop:
|
||||
}
|
||||
}
|
||||
|
||||
// If there are duplicate phi nodes (for example, from loop rotation),
|
||||
// get rid of them.
|
||||
for (Loop::block_iterator BB = L->block_begin(), E = L->block_end();
|
||||
BB != E; ++BB)
|
||||
EliminateDuplicatePHINodes(*BB);
|
||||
|
||||
return Changed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user