forked from OSchip/llvm-project
parent
8737480dfa
commit
e505a5abe9
|
@ -73,6 +73,10 @@ public:
|
|||
/// cleanup-ish optimizations.
|
||||
EP_ScalarOptimizerLate,
|
||||
|
||||
/// EP_OptimizerLast -- This extension point allows adding passes that
|
||||
/// run after everything else.
|
||||
EP_OptimizerLast,
|
||||
|
||||
/// EP_EnabledOnOptLevel0 - This extension point allows adding passes that
|
||||
/// should not be disabled by O0 optimization level. The passes will be
|
||||
/// inserted after the inlining pass.
|
||||
|
|
|
@ -202,6 +202,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
|
|||
if (OptLevel > 1)
|
||||
MPM.add(createConstantMergePass()); // Merge dup global constants
|
||||
}
|
||||
addExtensionsToPM(EP_OptimizerLast, MPM);
|
||||
}
|
||||
|
||||
void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM,
|
||||
|
|
Loading…
Reference in New Issue