[PATCH] D64275: [InstCombine] Generalize InstCombiner::foldAndOrOfICmpsOfAndWithPow2().

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 14:38:51 PDT 2019


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

I think we should only create signbit shift instruction when fold is supposed to happen.

I update the differential, let me know what you guys think?


Repository:
  rL LLVM

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

https://reviews.llvm.org/D64275

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/onehot_merge.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64275.209341.patch
Type: text/x-patch
Size: 10392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/becb2c41/attachment.bin>


More information about the llvm-commits mailing list