Lines Matching defs:MPM
97 void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
101 MPM.add(Inliner);
108 if (LibraryInfo) MPM.add(new TargetLibraryInfo(*LibraryInfo));
110 addInitialAliasAnalysisPasses(MPM);
113 MPM.add(createGlobalOptimizerPass()); // Optimize out global vars
115 MPM.add(createIPSCCPPass()); // IP SCCP
116 MPM.add(createDeadArgEliminationPass()); // Dead argument elimination
118 MPM.add(createInstructionCombiningPass());// Clean up after IPCP & DAE
119 MPM.add(createCFGSimplificationPass()); // Clean up after IPCP & DAE
124 MPM.add(createPruneEHPass()); // Remove dead EH info
126 MPM.add(Inliner);
130 MPM.add(createFunctionAttrsPass()); // Set readonly/readnone attrs
132 MPM.add(createArgumentPromotionPass()); // Scalarize uninlined fn args
136 MPM.add(createScalarReplAggregatesPass(-1, false));
137 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies
139 MPM.add(createSimplifyLibCallsPass()); // Library Call Optimizations
140 MPM.add(createJumpThreadingPass()); // Thread jumps.
141 MPM.add(createCorrelatedValuePropagationPass()); // Propagate conditionals
142 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
143 MPM.add(createInstructionCombiningPass()); // Combine silly seq's
145 MPM.add(createTailCallEliminationPass()); // Eliminate tail calls
146 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
147 MPM.add(createReassociatePass()); // Reassociate expressions
148 MPM.add(createLoopRotatePass()); // Rotate Loop
149 MPM.add(createLICMPass()); // Hoist loop invariants
150 MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3));
151 MPM.add(createInstructionCombiningPass());
152 MPM.add(createIndVarSimplifyPass()); // Canonicalize indvars
153 MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
154 MPM.add(createLoopDeletionPass()); // Delete dead loops
156 MPM.add(createLoopUnrollPass()); // Unroll small loops
157 addExtensionsToPM(EP_LoopOptimizerEnd, MPM);
160 MPM.add(createGVNPass()); // Remove redundancies
161 MPM.add(createMemCpyOptPass()); // Remove memcpy / form memset
162 MPM.add(createSCCPPass()); // Constant prop with SCCP
166 MPM.add(createInstructionCombiningPass());
167 MPM.add(createJumpThreadingPass()); // Thread jumps
168 MPM.add(createCorrelatedValuePropagationPass());
169 MPM.add(createDeadStoreEliminationPass()); // Delete dead stores
171 addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
173 MPM.add(createAggressiveDCEPass()); // Delete dead instructions
174 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
175 MPM.add(createInstructionCombiningPass()); // Clean up after everything.
179 MPM.add(createStripDeadPrototypesPass()); // Get rid of dead prototypes
184 MPM.add(createGlobalDCEPass()); // Remove dead fns and globals.
187 MPM.add(createConstantMergePass()); // Merge dup global constants
331 PassManagerBase *MPM = unwrap(PM);
332 Builder->populateModulePassManager(*MPM);