This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Use context-sensitive byte size cost for preinliner decisions by default
ClosedPublic

Authored by wenlei on Sep 16 2021, 8:36 AM.

Details

Summary

Turn on use-context-cost-for-preinliner to use context-sensitive byte size cost for preinliner decisions by default.

This is a more accurate proxy of inline cost than profile size. We tested on our large workload that it delivers measureable CPU improvement.

Diff Detail

Event Timeline

wenlei created this revision.Sep 16 2021, 8:36 AM
wenlei requested review of this revision.Sep 16 2021, 8:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2021, 8:36 AM
hoy accepted this revision.Sep 16 2021, 9:28 AM

One test is failing, might be related. Otherwise, lgtm.

This revision is now accepted and ready to land.Sep 16 2021, 9:28 AM
wenlei updated this revision to Diff 372991.Sep 16 2021, 10:36 AM

update test

This revision was landed with ongoing or failed builds.Sep 16 2021, 10:37 AM
This revision was automatically updated to reflect the committed changes.