Page MenuHomePhabricator

[Inliner] Compute the full cost for the cost benefit analsysis

Authored by kazu on Mon, Dec 21, 12:13 PM.



This patch teaches the inliner to compute the full cost for a call
site where the newly introduced cost benefit analysis is enabled.

Note that the cost benefit analysis requires the full cost to be
computed. However, without this patch or the -inline-cost-full
option, the early termination logic would kick in when the cost
exceeds the threshold, so we don't get to perform the cost benefit
analysis. For this reason, we would need to specify four clang

-mllvm -inline-cost-full
-mllvm -inline-enable-cost-benefit-analysis

This patch eliminates the need to specify -inline-cost-full.

Diff Detail

Event Timeline

kazu created this revision.Mon, Dec 21, 12:13 PM
kazu requested review of this revision.Mon, Dec 21, 12:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptMon, Dec 21, 12:13 PM
davidxl accepted this revision.Tue, Jan 5, 8:52 AM


This revision is now accepted and ready to land.Tue, Jan 5, 8:52 AM