Lines Matching refs:MPM

170     legacy::PassManagerBase &MPM) {  in populateModulePassManager()  argument
175 MPM.add(Inliner); in populateModulePassManager()
185 MPM.add(createMergeFunctionsPass()); in populateModulePassManager()
187 MPM.add(createBarrierNoopPass()); in populateModulePassManager()
189 addExtensionsToPM(EP_EnabledOnOptLevel0, MPM); in populateModulePassManager()
195 MPM.add(new TargetLibraryInfoWrapperPass(*LibraryInfo)); in populateModulePassManager()
197 addInitialAliasAnalysisPasses(MPM); in populateModulePassManager()
200 addExtensionsToPM(EP_ModuleOptimizerEarly, MPM); in populateModulePassManager()
202 MPM.add(createIPSCCPPass()); // IP SCCP in populateModulePassManager()
203 MPM.add(createGlobalOptimizerPass()); // Optimize out global vars in populateModulePassManager()
205 MPM.add(createDeadArgEliminationPass()); // Dead argument elimination in populateModulePassManager()
207 MPM.add(createInstructionCombiningPass());// Clean up after IPCP & DAE in populateModulePassManager()
208 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
209 MPM.add(createCFGSimplificationPass()); // Clean up after IPCP & DAE in populateModulePassManager()
214 MPM.add(createPruneEHPass()); // Remove dead EH info in populateModulePassManager()
216 MPM.add(Inliner); in populateModulePassManager()
220 MPM.add(createFunctionAttrsPass()); // Set readonly/readnone attrs in populateModulePassManager()
222 MPM.add(createArgumentPromotionPass()); // Scalarize uninlined fn args in populateModulePassManager()
227 MPM.add(createSROAPass(/*RequiresDomTree*/ false)); in populateModulePassManager()
229 MPM.add(createScalarReplAggregatesPass(-1, false)); in populateModulePassManager()
230 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in populateModulePassManager()
231 MPM.add(createJumpThreadingPass()); // Thread jumps. in populateModulePassManager()
232 MPM.add(createCorrelatedValuePropagationPass()); // Propagate conditionals in populateModulePassManager()
233 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in populateModulePassManager()
234 MPM.add(createInstructionCombiningPass()); // Combine silly seq's in populateModulePassManager()
235 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
238 MPM.add(createTailCallEliminationPass()); // Eliminate tail calls in populateModulePassManager()
239 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in populateModulePassManager()
240 MPM.add(createReassociatePass()); // Reassociate expressions in populateModulePassManager()
242 MPM.add(createLoopRotatePass(SizeLevel == 2 ? 0 : -1)); in populateModulePassManager()
243 MPM.add(createLICMPass()); // Hoist loop invariants in populateModulePassManager()
244 MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3)); in populateModulePassManager()
245 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
246 MPM.add(createIndVarSimplifyPass()); // Canonicalize indvars in populateModulePassManager()
247 MPM.add(createLoopIdiomPass()); // Recognize idioms like memset. in populateModulePassManager()
248 MPM.add(createLoopDeletionPass()); // Delete dead loops in populateModulePassManager()
250 MPM.add(createLoopInterchangePass()); // Interchange loops in populateModulePassManager()
253 MPM.add(createSimpleLoopUnrollPass()); // Unroll small loops in populateModulePassManager()
254 addExtensionsToPM(EP_LoopOptimizerEnd, MPM); in populateModulePassManager()
258 MPM.add(createMergedLoadStoreMotionPass()); // Merge ld/st in diamonds in populateModulePassManager()
259 MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies in populateModulePassManager()
261 MPM.add(createMemCpyOptPass()); // Remove memcpy / form memset in populateModulePassManager()
262 MPM.add(createSCCPPass()); // Constant prop with SCCP in populateModulePassManager()
267 MPM.add(createBitTrackingDCEPass()); // Delete dead bit computations in populateModulePassManager()
271 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
272 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
273 MPM.add(createJumpThreadingPass()); // Thread jumps in populateModulePassManager()
274 MPM.add(createCorrelatedValuePropagationPass()); in populateModulePassManager()
275 MPM.add(createDeadStoreEliminationPass()); // Delete dead stores in populateModulePassManager()
276 MPM.add(createLICMPass()); in populateModulePassManager()
278 addExtensionsToPM(EP_ScalarOptimizerLate, MPM); in populateModulePassManager()
281 MPM.add(createLoopRerollPass()); in populateModulePassManager()
284 MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains. in populateModulePassManager()
287 MPM.add(createBBVectorizePass()); in populateModulePassManager()
288 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
289 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
291 MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies in populateModulePassManager()
293 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in populateModulePassManager()
297 MPM.add(createLoopUnrollPass()); in populateModulePassManager()
302 MPM.add(createLoadCombinePass()); in populateModulePassManager()
304 MPM.add(createAggressiveDCEPass()); // Delete dead instructions in populateModulePassManager()
305 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in populateModulePassManager()
306 MPM.add(createInstructionCombiningPass()); // Clean up after everything. in populateModulePassManager()
307 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
312 MPM.add(createBarrierNoopPass()); in populateModulePassManager()
315 MPM.add(createFloat2IntPass()); in populateModulePassManager()
320 MPM.add(createLoopRotatePass()); in populateModulePassManager()
322 MPM.add(createLoopVectorizePass(DisableUnrollLoops, LoopVectorize)); in populateModulePassManager()
328 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
336 MPM.add(createEarlyCSEPass()); in populateModulePassManager()
337 MPM.add(createCorrelatedValuePropagationPass()); in populateModulePassManager()
338 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
339 MPM.add(createLICMPass()); in populateModulePassManager()
340 MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3)); in populateModulePassManager()
341 MPM.add(createCFGSimplificationPass()); in populateModulePassManager()
342 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
347 MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains. in populateModulePassManager()
349 MPM.add(createEarlyCSEPass()); in populateModulePassManager()
354 MPM.add(createBBVectorizePass()); in populateModulePassManager()
355 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
356 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
358 MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies in populateModulePassManager()
360 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in populateModulePassManager()
364 MPM.add(createLoopUnrollPass()); in populateModulePassManager()
368 addExtensionsToPM(EP_Peephole, MPM); in populateModulePassManager()
369 MPM.add(createCFGSimplificationPass()); in populateModulePassManager()
370 MPM.add(createInstructionCombiningPass()); in populateModulePassManager()
373 MPM.add(createLoopUnrollPass()); // Unroll small loops in populateModulePassManager()
377 MPM.add(createInstructionSimplifierPass()); in populateModulePassManager()
383 MPM.add(createLICMPass()); in populateModulePassManager()
388 MPM.add(createAlignmentFromAssumptionsPass()); in populateModulePassManager()
392 MPM.add(createStripDeadPrototypesPass()); // Get rid of dead prototypes in populateModulePassManager()
397 MPM.add(createGlobalDCEPass()); // Remove dead fns and globals. in populateModulePassManager()
398 MPM.add(createConstantMergePass()); // Merge dup global constants in populateModulePassManager()
403 MPM.add(createMergeFunctionsPass()); in populateModulePassManager()
405 addExtensionsToPM(EP_OptimizerLast, MPM); in populateModulePassManager()
610 legacy::PassManagerBase *MPM = unwrap(PM); in LLVMPassManagerBuilderPopulateModulePassManager() local
611 Builder->populateModulePassManager(*MPM); in LLVMPassManagerBuilderPopulateModulePassManager()