forked from OSchip/llvm-project
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:
parent
da9501b25c
commit
83570247f1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue