[llvm] [LLVM] Add 'ExpandVariadicsPass' to LTO default pipeline (PR #100479)

Jon Chesterfield via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 06:55:39 PDT 2024


================
@@ -1874,6 +1875,9 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
   MPM.addPass(createModuleToFunctionPassAdaptor(std::move(PeepholeFPM),
                                                 PTO.EagerlyInvalidateAnalyses));
 
+  // Lower variadic functions for supported targets prior to inlining.
+  MPM.addPass(ExpandVariadicsPass(ExpandVariadicsMode::Optimize));
----------------
JonChesterfield wrote:

The optimise version can run however often we like, on any subsets of the IR module. All good.

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


More information about the llvm-commits mailing list