mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-23 01:30:19 +00:00
LTO: Add more loop simplification passes to LTO
Similar to r202051, add missing loop simplification passes to the LTO optimization pipeline. Patch by Rafael Espindola. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206306 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
950c7b25bb
commit
f5d9a1512c
@ -334,7 +334,9 @@ void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM,
|
|||||||
// Nuke dead stores.
|
// Nuke dead stores.
|
||||||
PM.add(createDeadStoreEliminationPass());
|
PM.add(createDeadStoreEliminationPass());
|
||||||
|
|
||||||
// More loops are countable try to vectorize them.
|
// More loops are countable; try to optimize them.
|
||||||
|
PM.add(createIndVarSimplifyPass());
|
||||||
|
PM.add(createLoopDeletionPass());
|
||||||
PM.add(createLoopVectorizePass(true, true));
|
PM.add(createLoopVectorizePass(true, true));
|
||||||
|
|
||||||
// Cleanup and simplify the code after the scalar optimizations.
|
// Cleanup and simplify the code after the scalar optimizations.
|
||||||
|
Loading…
Reference in New Issue
Block a user