Lines Matching refs:MPM
189 legacy::PassManagerBase &MPM) {
194 MPM.add(Inliner);
204 MPM.add(createMergeFunctionsPass());
206 MPM.add(createBarrierNoopPass());
208 addExtensionsToPM(EP_EnabledOnOptLevel0, MPM);
214 MPM.add(new TargetLibraryInfoWrapperPass(*LibraryInfo));
216 addInitialAliasAnalysisPasses(MPM);
219 addExtensionsToPM(EP_ModuleOptimizerEarly, MPM);
221 MPM.add(createIPSCCPPass()); // IP SCCP
222 MPM.add(createGlobalOptimizerPass()); // Optimize out global vars
224 MPM.add(createPromoteMemoryToRegisterPass());
226 MPM.add(createDeadArgEliminationPass()); // Dead argument elimination
228 MPM.add(createInstructionCombiningPass());// Clean up after IPCP & DAE
229 addExtensionsToPM(EP_Peephole, MPM);
230 MPM.add(createCFGSimplificationPass()); // Clean up after IPCP & DAE
237 MPM.add(createGlobalsAAWrapperPass());
241 MPM.add(createPruneEHPass()); // Remove dead EH info
243 MPM.add(Inliner);
247 MPM.add(createFunctionAttrsPass()); // Set readonly/readnone attrs
249 MPM.add(createArgumentPromotionPass()); // Scalarize uninlined fn args
254 MPM.add(createSROAPass());
256 MPM.add(createScalarReplAggregatesPass(-1, false));
257 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies
258 MPM.add(createJumpThreadingPass()); // Thread jumps.
259 MPM.add(createCorrelatedValuePropagationPass()); // Propagate conditionals
260 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
261 MPM.add(createInstructionCombiningPass()); // Combine silly seq's
262 addExtensionsToPM(EP_Peephole, MPM);
264 MPM.add(createTailCallEliminationPass()); // Eliminate tail calls
265 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
266 MPM.add(createReassociatePass()); // Reassociate expressions
268 MPM.add(createLoopRotatePass(SizeLevel == 2 ? 0 : -1));
269 MPM.add(createLICMPass()); // Hoist loop invariants
270 MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3));
271 MPM.add(createCFGSimplificationPass());
272 MPM.add(createInstructionCombiningPass());
273 MPM.add(createIndVarSimplifyPass()); // Canonicalize indvars
274 MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
275 MPM.add(createLoopDeletionPass()); // Delete dead loops
277 MPM.add(createLoopInterchangePass()); // Interchange loops
278 MPM.add(createCFGSimplificationPass());
281 MPM.add(createSimpleLoopUnrollPass()); // Unroll small loops
282 addExtensionsToPM(EP_LoopOptimizerEnd, MPM);
286 MPM.add(createMergedLoadStoreMotionPass()); // Merge ld/st in diamonds
287 MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies
289 MPM.add(createMemCpyOptPass()); // Remove memcpy / form memset
290 MPM.add(createSCCPPass()); // Constant prop with SCCP
295 MPM.add(createBitTrackingDCEPass()); // Delete dead bit computations
299 MPM.add(createInstructionCombiningPass());
300 addExtensionsToPM(EP_Peephole, MPM);
301 MPM.add(createJumpThreadingPass()); // Thread jumps
302 MPM.add(createCorrelatedValuePropagationPass());
303 MPM.add(createDeadStoreEliminationPass()); // Delete dead stores
304 MPM.add(createLICMPass());
306 addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
309 MPM.add(createLoopRerollPass());
312 MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
315 MPM.add(createBBVectorizePass());
316 MPM.add(createInstructionCombiningPass());
317 addExtensionsToPM(EP_Peephole, MPM);
319 MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies
321 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies
325 MPM.add(createLoopUnrollPass());
330 MPM.add(createLoadCombinePass());
332 MPM.add(createAggressiveDCEPass()); // Delete dead instructions
333 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
334 MPM.add(createInstructionCombiningPass()); // Clean up after everything.
335 addExtensionsToPM(EP_Peephole, MPM);
340 MPM.add(createBarrierNoopPass());
352 MPM.add(createEliminateAvailableExternallyPass());
371 MPM.add(createGlobalsAAWrapperPass());
374 MPM.add(createFloat2IntPass());
376 addExtensionsToPM(EP_VectorizerStart, MPM);
381 MPM.add(createLoopRotatePass(SizeLevel == 2 ? 0 : -1));
386 MPM.add(createLoopDistributePass());
388 MPM.add(createLoopVectorizePass(DisableUnrollLoops, LoopVectorize));
393 MPM.add(createLoopLoadEliminationPass());
400 MPM.add(createInstructionCombiningPass());
408 MPM.add(createEarlyCSEPass());
409 MPM.add(createCorrelatedValuePropagationPass());
410 MPM.add(createInstructionCombiningPass());
411 MPM.add(createLICMPass());
412 MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3));
413 MPM.add(createCFGSimplificationPass());
414 MPM.add(createInstructionCombiningPass());
419 MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
421 MPM.add(createEarlyCSEPass());
426 MPM.add(createBBVectorizePass());
427 MPM.add(createInstructionCombiningPass());
428 addExtensionsToPM(EP_Peephole, MPM);
430 MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies
432 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies
436 MPM.add(createLoopUnrollPass());
440 addExtensionsToPM(EP_Peephole, MPM);
441 MPM.add(createCFGSimplificationPass());
442 MPM.add(createInstructionCombiningPass());
445 MPM.add(createLoopUnrollPass()); // Unroll small loops
448 MPM.add(createInstructionCombiningPass());
454 MPM.add(createLICMPass());
459 MPM.add(createAlignmentFromAssumptionsPass());
463 MPM.add(createStripDeadPrototypesPass()); // Get rid of dead prototypes
468 MPM.add(createGlobalDCEPass()); // Remove dead fns and globals.
469 MPM.add(createConstantMergePass()); // Merge dup global constants
474 MPM.add(createMergeFunctionsPass());
476 addExtensionsToPM(EP_OptimizerLast, MPM);
703 legacy::PassManagerBase *MPM = unwrap(PM);
704 Builder->populateModulePassManager(*MPM);