The legacy PM allowed you to set a custom inliner threshold via
builder.Inliner = llvm::createFunctionInliningPass(inline_threshold);
This allows the same thing to be done with the new PM optimization pipelines.
Paths
| Differential D137038
[NewPM][Pipeline] Add PipelineTuningOption to set inliner threshold ClosedPublic Authored by aeubanks on Oct 30 2022, 9:53 AM.
Details Summary The legacy PM allowed you to set a custom inliner threshold via builder.Inliner = llvm::createFunctionInliningPass(inline_threshold); This allows the same thing to be done with the new PM optimization pipelines.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 1 2022, 3:08 PM Closed by commit rG4fa328074efd: [NewPM][Pipeline] Add PipelineTuningOption to set inliner threshold (authored by aeubanks). · Explain WhyNov 2 2022, 10:48 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 472693 llvm/include/llvm/Passes/PassBuilder.h
llvm/lib/Passes/PassBuilderPipelines.cpp
|