[PATCH] D63675: [InstCombine] Simplify icmp ult/uge (shl %x, C2), C1 iff C1 is power of two -> icmp eq/ne (and %x, (lshr -C1, C2)), 0.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 15:04:01 PDT 2019


huihuiz updated this revision to Diff 206309.
huihuiz marked 4 inline comments as done.
huihuiz added a comment.

addressed review comments


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63675

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/pr17827.ll
  llvm/test/Transforms/InstCombine/shl-unsigned-cmp-const.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63675.206309.patch
Type: text/x-patch
Size: 6595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190624/2c23e3ea/attachment.bin>


More information about the llvm-commits mailing list