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 da9501b25c
commit 83570247f1
1 changed files with 1 additions and 0 deletions

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);