[PATCH] D140337: Propagate branchweight through phi values when ExpectedValue is unlikely in LowerExpectIntrinsic
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 23:14:42 PST 2022
davidxl added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp:137
+ double TrueProb = Confidence->getValueAPF().convertToDouble();
+ ExpectedValueIsLikely = (TrueProb > 0.5);
+ }
----------------
This should probably be made more biased.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140337/new/
https://reviews.llvm.org/D140337
More information about the llvm-commits
mailing list