[PATCH] D158668: Add getLikelyBranchWeight helper function
Matthias Braun via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 16:01:24 PDT 2023
MatzeB added a comment.
And as another strawman / discussion-started I put up D158680 <https://reviews.llvm.org/D158680> where I use `!{"branch_weights", i32 1, i32 0}` to represent likely branches and the actual "LikelyWeight" mostly becomes an internal implementation detail of the BranchProbabilityInfo class... This seemed like a neat way to get an abstract "likely", "unlikely" notation, but not sure of the effects if we no longer would have "truly zero" weights because they would be interpreted differently now...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158668/new/
https://reviews.llvm.org/D158668
More information about the cfe-commits
mailing list