[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
Wed Jun 26 23:30:46 PDT 2019


huihuiz updated this revision to Diff 206784.
huihuiz marked 3 inline comments as done.
huihuiz added a comment.
Herald added a subscriber: hiraditya.

I simplify the code for pattern matching, more readable.


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.206784.patch
Type: text/x-patch
Size: 13610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190627/7d8834c5/attachment.bin>


More information about the llvm-commits mailing list