1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Run LICM as part of the cleanup phase from the scalar optimizer.

Things like LoopUnrolling can produce loop invariant values - make sure
we pick them up.

llvm-svn: 229419
This commit is contained in:
James Molloy 2015-02-16 18:59:54 +00:00
parent 314d63548e
commit c4b7d913d4

View File

@ -259,6 +259,7 @@ void PassManagerBuilder::populateModulePassManager(
MPM.add(createJumpThreadingPass()); // Thread jumps
MPM.add(createCorrelatedValuePropagationPass());
MPM.add(createDeadStoreEliminationPass()); // Delete dead stores
MPM.add(createLICMPass());
addExtensionsToPM(EP_ScalarOptimizerLate, MPM);