This is an archive of the discontinued LLVM Phabricator instance.

[SampleFDO] Skip PreLink ICP for better profile quality of MonoLTO PostLink
ClosedPublic

Authored by wenlei on Feb 18 2021, 8:18 PM.

Details

Summary

For ThinLTO, PreLink ICP is skipped to favor better profile annotation during LTO PostLink. This change applies the same tweak for MonoLTO. Note that PreLink ICP not only makes PostLink profile annotation harder, it is also uncoordinated with PostLink ICP so duplicated ICP could happen.

Diff Detail

Event Timeline

wenlei created this revision.Feb 18 2021, 8:18 PM
wenlei requested review of this revision.Feb 18 2021, 8:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 8:18 PM

This is a change we've been using for some time internally, sending it up prompted by @wmi's ICP improvements. I don't have numbers but thought it could be helpful in general and it also aligns MonoLTO with ThinLTO.

wmi accepted this revision.Feb 19 2021, 3:07 PM

LGTM.

This revision is now accepted and ready to land.Feb 19 2021, 3:07 PM
This revision was landed with ongoing or failed builds.Feb 19 2021, 7:38 PM
This revision was automatically updated to reflect the committed changes.