[PATCH] D62818: [InstCombine] Introduce fold for icmp pred (and X, (sh signbit, Y)), 0.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 20:58:13 PDT 2019


huihuiz updated this revision to Diff 208252.
huihuiz added a comment.

Generalize InstCombiner::foldAndOrOfICmpsOfAndWithPow2() in D64275 <https://reviews.llvm.org/D64275>


Repository:
  rL LLVM

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

https://reviews.llvm.org/D62818

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/onehot_merge.ll
  llvm/test/Transforms/InstCombine/signbit-lshr-and-icmpeq-zero.ll
  llvm/test/Transforms/InstCombine/signbit-shl-and-icmpeq-zero.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62818.208252.patch
Type: text/x-patch
Size: 12181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190706/c8093210/attachment.bin>


More information about the llvm-commits mailing list