This is an archive of the discontinued LLVM Phabricator instance.

[Inliner] Add another way to compute full inline cost.
ClosedPublic

Authored by eraman on Sep 13 2017, 12:01 PM.

Details

Summary

Full inline cost is computed when -inline-cost-full is true or ORE is
non-null. This patch adds another way to compute full inline cost by
adding a field to InlineParams. This will be used by SampleProfileLoader
to check legality of inlining a callee that it wants to inline.

Diff Detail

Repository
rL LLVM

Event Timeline

eraman created this revision.Sep 13 2017, 12:01 PM
This revision is now accepted and ready to land.Sep 13 2017, 12:24 PM
danielcdh accepted this revision.Sep 13 2017, 12:31 PM
This revision was automatically updated to reflect the committed changes.