This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

aeubanks created this revision.Oct 30 2022, 9:53 AM
Herald added a reviewer: ctetreau. · View Herald Transcript
Herald added a reviewer: ctetreau. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: hiraditya. · View Herald Transcript
aeubanks requested review of this revision.Oct 30 2022, 9:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2022, 9:53 AM
asbirlea accepted this revision.Nov 1 2022, 3:08 PM

LGTM.

This revision is now accepted and ready to land.Nov 1 2022, 3:08 PM