[PATCH] D113872: [CGP] Handle select instructions relying on the same condition
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 23 06:07:19 PST 2021
shchenz added a comment.
If we make the SimplifyCFG pass keep the statically calculated branch weights(if any) for the select instructions, will our case be optimized like expected in the CGP pass? If so, I think letting SimplifyCFG pass keep the branch weights for the select instructions should make more sense. I saw there are some functions like `setBranchWeights` in SimplifyCFG pass that will update the branch weights, but not sure why it does not work for our case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113872/new/
https://reviews.llvm.org/D113872
More information about the llvm-commits
mailing list