[PATCH] D34244: [InstCombine] Fold (!iszero(A & K1) & !iszero(A & K2)) -> (A & (K1 | K2)) == (K1 | K2) if K1 and K2 are a 1-bit mask

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 12:44:20 PDT 2017


craig.topper updated this revision to Diff 102706.
craig.topper added a comment.

Move to helper method. Make test diffs relative.


https://reviews.llvm.org/D34244

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  lib/Transforms/InstCombine/InstCombineInternal.h
  test/Transforms/InstCombine/onehot_merge.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34244.102706.patch
Type: text/x-patch
Size: 8886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170615/823135a3/attachment.bin>


More information about the llvm-commits mailing list