[PATCH] D105013: [InstCombine] try to fold the expression "(A & ~B) + B" to "A ^ B"
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 28 04:52:48 PDT 2021
lebedev.ri added a comment.
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
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105013/new/
https://reviews.llvm.org/D105013
More information about the llvm-commits
mailing list