This is an archive of the discontinued LLVM Phabricator instance.

[CSSPGO] Switches to disable pre-link inlining
AbandonedPublic

Authored by hoy on Jun 25 2021, 9:15 AM.

Details

Reviewers
wmi
wenlei
Summary

Adding switches to disable pre-link FDO inlining and cgscc inlining so that we can a chance to collect cross-module inline candidate's GUID to help cross module importing.

Diff Detail

Event Timeline

hoy created this revision.Jun 25 2021, 9:15 AM
hoy requested review of this revision.Jun 25 2021, 9:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2021, 9:15 AM

The best of csspgo thinlto performance comes from disabling prelink sample inlining and cgscc inlining. This gives a more centralized global inlining. This still doesn't achieve the fulllto level inlining. We will rely on the llvm-profgen preinliner to improve that.

hoy added a comment.Jun 25 2021, 9:18 AM

Sending out this patch for @wmi to experiment with csspgo for now. Some work may be needed to finalize if we'd like to have it landed.

fyi, we tried to upstream this, and there were some discussions: https://reviews.llvm.org/D96197

wmi added a comment.Jun 25 2021, 9:51 AM

Thanks Hongtao, I will try it.

hoy abandoned this revision.Nov 4 2021, 10:41 AM