[PATCH] D112966: [InstCombine] (~a & b & c) | ~(a | b | c) -> ~(a | (b ^ c))

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 11:39:07 PST 2021


rampitec updated this revision to Diff 386901.
rampitec edited the summary of this revision.
rampitec added a comment.

Rebased and added swapped case:

  (~a | b | c) & ~(a & b & c) -> ~a | (b ^ c)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112966/new/

https://reviews.llvm.org/D112966

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/and-xor-or.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112966.386901.patch
Type: text/x-patch
Size: 22392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211112/1e334ac7/attachment-0001.bin>


More information about the llvm-commits mailing list