This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Disable partial sample profile scaling by default
ClosedPublic

Authored by tejohnson on May 23 2023, 1:11 PM.

Details

Summary

As pointed out in
https://discourse.llvm.org/t/undeterministic-thin-index-file/69985, the
block count added to distributed ThinLTO index files breaks incremental
builds on ThinLTO - if any linked file has a different number of BBs,
then the accumulated sum placed in the index files will change, causing
all ThinLTO backend compiles to be redone.

This was only used for partial sample profiles, and was therefore
removed for other cases (3adc6e03080c6d38a51f5c5b6744b7c0d9c7541b).

Subsequent testing did not show a performance effect of disabling this
feature even for partial sample profiles. Therefore, switch the default
to false. If this does not cause a noticeable performance degradation
after the default flip, we can remove this support completely.

Diff Detail

Event Timeline

tejohnson created this revision.May 23 2023, 1:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 1:11 PM
tejohnson requested review of this revision.May 23 2023, 1:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 1:11 PM
davidxl accepted this revision.May 25 2023, 8:31 AM

lgtm

This revision is now accepted and ready to land.May 25 2023, 8:31 AM
This revision was landed with ongoing or failed builds.May 25 2023, 8:33 AM
This revision was automatically updated to reflect the committed changes.