[PATCH] D109877: [NewPM] Make InlinerPass (aka 'inline') a parameterized pass
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 06:02:51 PDT 2021
bjope created this revision.
bjope added reviewers: aeubanks, mtrofin.
Herald added subscribers: ormris, hiraditya, eraman.
bjope requested review of this revision.
Herald added a project: LLVM.
In default pipelines the ModuleInlinerWrapperPass is adding the
InlinerPass to the pipeline twice, once due to MandatoryFirst (passing
true in the ctor) and then a second time with false as argument.
To make it possible to bisect and reduce opt test cases for this
part of the pipeline we need to be able to choose between the two
different variants of the InlinerPass when running opt. This patch is
changing 'inline' to a CGSCC_PASS_WITH_PARAMS in the PassRegistry,
making it possible run opt with both -passes=cgscc(inline) and
-passes=cgscc(inline<only-mandatory>).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109877
Files:
llvm/include/llvm/Transforms/IPO/Inliner.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/IPO/Inliner.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109877.372912.patch
Type: text/x-patch
Size: 6509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210916/c0edb6da/attachment.bin>
More information about the llvm-commits
mailing list