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).
Paths
| Differential D98945
[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 TimelineHerald added subscribers: dexonsmith, hiraditya, mcrosier. · 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 mentioned this in D98898: [SimplifyCFG] use profile metadata to refine merging branch conditions .Mar 19 2021, 6:05 AM spatel added a child revision: D98898: [SimplifyCFG] use profile metadata to refine merging branch conditions . Comment Actions Patch updated: This revision is now accepted and ready to land.Mar 19 2021, 11:47 AM Closed by commit rGee8b53815ddf: [BranchProbability] move options for 'likely' and 'unlikely' (authored by spatel). · Explain WhyMar 20 2021, 11:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 331842 llvm/include/llvm/Support/BranchProbability.h
llvm/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
llvm/lib/Support/BranchProbability.cpp
llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
|