[PATCH] D105013: [InstCombine] try to fold the expression "(A & ~B) + B" to "A ^ B"
Yifeng Dong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 28 05:51:55 PDT 2021
dongAxis1944 added a comment.
In D105013#2843794 <https://reviews.llvm.org/D105013#2843794>, @lebedev.ri wrote:
> The missing fold here is: https://alive2.llvm.org/ce/z/7uIb0B (i.e. it should go into `haveNoCommonBitsSet()`)
> And this will automagically fold to `or`, not `xor`: https://godbolt.org/z/6svT3vc44
Sorry for my mistake, I just missing the right expression.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105013/new/
https://reviews.llvm.org/D105013
More information about the llvm-commits
mailing list