[PATCH] D63505: [InstCombine] Fold icmp eq/ne (and %x, C), 0 iff (-C) is power of two -> %x u</u>= (-C) earlier.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 14:56:56 PDT 2019


huihuiz updated this revision to Diff 206307.
huihuiz marked 2 inline comments as done.
huihuiz added a comment.

addressed review comments


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63505

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63505.206307.patch
Type: text/x-patch
Size: 9231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190624/63e6802a/attachment.bin>


More information about the llvm-commits mailing list