[PATCH] D60590: [InstCombine] Simplify more cases of logical ops of masked icmps.

Shawn Landden via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 17:02:29 PDT 2019


shawnl updated this revision to Diff 194986.
shawnl added a comment.

[InstCombine] Simplify more cases of logical ops of masked icmps.

      

Generalizing the work by Hiroshi Yamauchi in
b80dd9b569808cd1d4e672fde77500890edfe446
https://reviews.llvm.org/D43835

      

Example:

      

(A & 3) == 3 and (A & 4) == 0 => (A & 7) == 3


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

https://reviews.llvm.org/D60590

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60590.194986.patch
Type: text/x-patch
Size: 37614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190413/9cd42d87/attachment.bin>


More information about the llvm-commits mailing list