llvm.org GIT mirror llvm / 7d4c87e
Add a new PassManagerBuilder customization point, EP_ModuleOptimizerEarly, to allow passes to be added before the main ModulePass optimizers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148329 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 7 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5858 /// any other transformations, allowing them to see the code as it is coming
5959 /// out of the frontend.
6060 EP_EarlyAsPossible,
61
62 /// EP_ModuleOptimizerEarly - This extension point allows adding passes
63 /// just before the main module-level optimization passes.
64 EP_ModuleOptimizerEarly,
6165
6266 /// EP_LoopOptimizerEnd - This extension point allows adding loop passes to
6367 /// the end of the loop optimizer.
109109 addInitialAliasAnalysisPasses(MPM);
110110
111111 if (!DisableUnitAtATime) {
112 addExtensionsToPM(EP_ModuleOptimizerEarly, MPM);
113
112114 MPM.add(createGlobalOptimizerPass()); // Optimize out global vars
113115
114116 MPM.add(createIPSCCPPass()); // IP SCCP