This is an archive of the discontinued LLVM Phabricator instance.

[llvm][NFC] Move inlining decision-related APIs in InliningAdvisor.
ClosedPublic

Authored by mtrofin on May 7 2020, 8:36 PM.

Diff Detail

Event Timeline

mtrofin created this revision.May 7 2020, 8:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2020, 8:36 PM

At first I thought may be put inliner advisor and friends into InlineCost.h[cpp], but on second thought, the proposed restructuring is better: we have inline cost analysis in InlineCost.xx, actual inliner transformation in Inliner.xx, and the inline heuristics or ML sits in InlineAdvisor.xx.

Just need to make the naming more consistent : InliningAdvisor --> InlineAdvisor

mtrofin updated this revision to Diff 262903.May 8 2020, 10:55 AM

feedback: InliningAdvisor -> InlineAdvisor

At first I thought may be put inliner advisor and friends into InlineCost.h[cpp], but on second thought, the proposed restructuring is better: we have inline cost analysis in InlineCost.xx, actual inliner transformation in Inliner.xx, and the inline heuristics or ML sits in InlineAdvisor.xx.

Just need to make the naming more consistent : InliningAdvisor --> InlineAdvisor

Done.

mtrofin updated this revision to Diff 262905.May 8 2020, 11:09 AM

updated name in comments

davidxl accepted this revision.May 11 2020, 8:59 AM

lgtm

This revision is now accepted and ready to land.May 11 2020, 8:59 AM
This revision was automatically updated to reflect the committed changes.