[PATCH] D146803: [Pass Builder] Allow Module Inliner for full lto
IBricchi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 24 04:42:05 PDT 2023
IBricchi updated this revision to Diff 508050.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146803/new/
https://reviews.llvm.org/D146803
Files:
llvm/lib/Passes/PassBuilderPipelines.cpp
Index: llvm/lib/Passes/PassBuilderPipelines.cpp
===================================================================
--- llvm/lib/Passes/PassBuilderPipelines.cpp
+++ llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -1708,11 +1708,12 @@
// valuable as the inliner doesn't currently care whether it is inlining an
// invoke or a call.
// Run the inliner now.
- MPM.addPass(ModuleInlinerWrapperPass(
- getInlineParamsFromOptLevel(Level),
- /* MandatoryFirst */ true,
- InlineContext{ThinOrFullLTOPhase::FullLTOPostLink,
- InlinePass::CGSCCInliner}));
+ if (EnableModuleInliner){
+ MPM.addPass(buildModuleInlinerPipeline(Level, ThinOrFullLTOPhase::FullLTOPostLink));
+ }
+ else{
+ MPM.addPass(buildInlinerPipeline(Level, ThinOrFullLTOPhase::FullLTOPostLink));
+ }
// Perform context disambiguation after inlining, since that would reduce the
// amount of additional cloning required to distinguish the allocation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146803.508050.patch
Type: text/x-patch
Size: 965 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230324/7aa98c1b/attachment.bin>
More information about the llvm-commits
mailing list