This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Increase coverage of shrink wrapping [3/5]
ClosedPublic

Authored by rafauler on May 20 2022, 8:23 PM.

Details

Summary

Add the option to run -equalize-bb-counts before shrink
wrapping to avoid unnecessarily optimizing some CFGs where profile is
inaccurate but we can prove two blocks have the same frequency.

Diff Detail

Event Timeline

rafauler created this revision.May 20 2022, 8:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2022, 8:23 PM
rafauler requested review of this revision.May 20 2022, 8:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2022, 8:23 PM
Amir accepted this revision.May 20 2022, 11:56 PM

Would it make sense to factor equalizeBBCounts out into a pass or BF method? (can do as a follow-up)

This revision is now accepted and ready to land.May 20 2022, 11:56 PM
This revision was automatically updated to reflect the committed changes.