[llvm-branch-commits] [clang] [llvm] [LLVM][PassBuilder] Extend the function signature of callback for optimizer pipeline extension point (PR #100953)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 29 06:19:44 PDT 2024


================
@@ -2159,7 +2161,7 @@ ModulePassManager PassBuilder::buildO0DefaultPipeline(OptimizationLevel Level,
   CoroPM.addPass(GlobalDCEPass());
   MPM.addPass(CoroConditionalWrapper(std::move(CoroPM)));
 
-  invokeOptimizerLastEPCallbacks(MPM, Level);
+  invokeOptimizerLastEPCallbacks(MPM, Level, ThinOrFullLTOPhase::None);
----------------
nikic wrote:

This doesn't look right. We should pass ThinOrFullLTOPhase through to buildO0DefaultPipeline.

https://github.com/llvm/llvm-project/pull/100953


More information about the llvm-branch-commits mailing list