This is an archive of the discontinued LLVM Phabricator instance.

[BranchProbability] move options for 'likely' and 'unlikely'
ClosedPublic

Authored by spatel on Mar 19 2021, 5:49 AM.

Details

Summary

This makes the settings available for use in other passes by housing them within the Support lib, but NFC otherwise.

See D98898 for the proposed usage in SimplifyCFG (where this was originally included).

Diff Detail

Event Timeline

spatel created this revision.Mar 19 2021, 5:49 AM
spatel requested review of this revision.Mar 19 2021, 5:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2021, 5:49 AM
spatel retitled this revision from [BranchProbability] move options for 'likely to [BranchProbability] move options for 'likely' and 'unlikely'.Mar 19 2021, 5:52 AM
spatel edited the summary of this revision. (Show Details)
spatel updated this revision to Diff 331872.Mar 19 2021, 7:42 AM

Patch updated:
Added a clang update that I missed before. That appears to be the only other user in clang+llvm.

lebedev.ri accepted this revision.Mar 19 2021, 11:47 AM

SGTM, thanks.

This revision is now accepted and ready to land.Mar 19 2021, 11:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2021, 11:49 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript