[PATCH] D45631: [InstCombine] Simplify 'xor'/'add' to 'or' if no common bits are set.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 13 15:04:21 PDT 2018


lebedev.ri updated this revision to Diff 142471.
lebedev.ri retitled this revision from "[InstCombine] Simplify 'xor' to 'or' if no common bits are set." to "[InstCombine] Simplify 'xor'/'and' to 'or' if no common bits are set.".
lebedev.ri edited the summary of this revision.
lebedev.ri added a comment.

Show that `add` is also handled.


Repository:
  rL LLVM

https://reviews.llvm.org/D45631

Files:
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/logical-select.ll
  test/Transforms/InstCombine/masked-merge-add.ll
  test/Transforms/InstCombine/masked-merge-xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45631.142471.patch
Type: text/x-patch
Size: 11498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180413/a05d2d77/attachment.bin>


More information about the llvm-commits mailing list