Lines Matching refs:MPM
132 void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) { in populateModulePassManager() argument
136 MPM.add(Inliner); in populateModulePassManager()
145 MPM.add(createBarrierNoopPass()); in populateModulePassManager()
147 addExtensionsToPM(EP_EnabledOnOptLevel0, MPM); in populateModulePassManager()
152 if (LibraryInfo) MPM.add(new TargetLibraryInfo(*LibraryInfo)); in populateModulePassManager()
154 addInitialAliasAnalysisPasses(MPM); in populateModulePassManager()
157 addExtensionsToPM(EP_ModuleOptimizerEarly, MPM); in populateModulePassManager()
159 MPM.add(createIPSCCPPass()); // IP SCCP in populateModulePassManager()
160 MPM.add(createGlobalOptimizerPass()); // Optimize out global vars in populateModulePassManager()
162 MPM.add(createDeadArgEliminationPass()); // Dead argument elimination in populateModulePassManager()
164 MPM.add(createInstructionCombiningPass());// Clean up after IPCP & DAE in populateModulePassManager()
165 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
166 MPM.add(createCFGSimplificationPass()); // Clean up after IPCP & DAE in populateModulePassManager()
171 MPM.add(createPruneEHPass()); // Remove dead EH info in populateModulePassManager()
173 MPM.add(Inliner); in populateModulePassManager()
177 MPM.add(createFunctionAttrsPass()); // Set readonly/readnone attrs in populateModulePassManager()
179 MPM.add(createArgumentPromotionPass()); // Scalarize uninlined fn args in populateModulePassManager()
184 MPM.add(createSROAPass(/*RequiresDomTree*/ false)); in populateModulePassManager()
186 MPM.add(createScalarReplAggregatesPass(-1, false)); in populateModulePassManager()
187 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in populateModulePassManager()
188 MPM.add(createJumpThreadingPass()); // Thread jumps. in populateModulePassManager()
189 MPM.add(createCorrelatedValuePropagationPass()); // Propagate conditionals in populateModulePassManager()
190 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in populateModulePassManager()
191 MPM.add(createInstructionCombiningPass()); // Combine silly seq's in populateModulePassManager()
192 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
195 MPM.add(createTailCallEliminationPass()); // Eliminate tail calls in populateModulePassManager()
196 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in populateModulePassManager()
197 MPM.add(createReassociatePass()); // Reassociate expressions in populateModulePassManager()
198 MPM.add(createLoopRotatePass()); // Rotate Loop in populateModulePassManager()
199 MPM.add(createLICMPass()); // Hoist loop invariants in populateModulePassManager()
200 MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3)); in populateModulePassManager()
201 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
202 MPM.add(createIndVarSimplifyPass()); // Canonicalize indvars in populateModulePassManager()
203 MPM.add(createLoopIdiomPass()); // Recognize idioms like memset. in populateModulePassManager()
204 MPM.add(createLoopDeletionPass()); // Delete dead loops in populateModulePassManager()
207 MPM.add(createSimpleLoopUnrollPass()); // Unroll small loops in populateModulePassManager()
208 addExtensionsToPM(EP_LoopOptimizerEnd, MPM); in populateModulePassManager()
211 MPM.add(createGVNPass()); // Remove redundancies in populateModulePassManager()
212 MPM.add(createMemCpyOptPass()); // Remove memcpy / form memset in populateModulePassManager()
213 MPM.add(createSCCPPass()); // Constant prop with SCCP in populateModulePassManager()
217 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
218 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
219 MPM.add(createJumpThreadingPass()); // Thread jumps in populateModulePassManager()
220 MPM.add(createCorrelatedValuePropagationPass()); in populateModulePassManager()
221 MPM.add(createDeadStoreEliminationPass()); // Delete dead stores in populateModulePassManager()
223 addExtensionsToPM(EP_ScalarOptimizerLate, MPM); in populateModulePassManager()
226 MPM.add(createLoopRerollPass()); in populateModulePassManager()
228 MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains. in populateModulePassManager()
231 MPM.add(createBBVectorizePass()); in populateModulePassManager()
232 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
233 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
235 MPM.add(createGVNPass()); // Remove redundancies in populateModulePassManager()
237 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in populateModulePassManager()
241 MPM.add(createLoopUnrollPass()); in populateModulePassManager()
245 MPM.add(createLoadCombinePass()); in populateModulePassManager()
247 MPM.add(createAggressiveDCEPass()); // Delete dead instructions in populateModulePassManager()
248 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in populateModulePassManager()
249 MPM.add(createInstructionCombiningPass()); // Clean up after everything. in populateModulePassManager()
250 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
255 MPM.add(createBarrierNoopPass()); in populateModulePassManager()
256 MPM.add(createLoopVectorizePass(DisableUnrollLoops, LoopVectorize)); in populateModulePassManager()
262 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
263 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
264 MPM.add(createCFGSimplificationPass()); in populateModulePassManager()
267 MPM.add(createLoopUnrollPass()); // Unroll small loops in populateModulePassManager()
271 MPM.add(createStripDeadPrototypesPass()); // Get rid of dead prototypes in populateModulePassManager()
276 MPM.add(createGlobalDCEPass()); // Remove dead fns and globals. in populateModulePassManager()
277 MPM.add(createConstantMergePass()); // Merge dup global constants in populateModulePassManager()
280 addExtensionsToPM(EP_OptimizerLast, MPM); in populateModulePassManager()
450 PassManagerBase *MPM = unwrap(PM); in LLVMPassManagerBuilderPopulateModulePassManager() local
451 Builder->populateModulePassManager(*MPM); in LLVMPassManagerBuilderPopulateModulePassManager()