[PATCH] D159059: [InstCombine] Make the `(icmp eq/ne (and X, Y), X)` canonicalization work for non-const operands

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 18:30:56 PDT 2023


goldstein.w.n updated this revision to Diff 555229.
goldstein.w.n added a comment.

Rebase


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D159059

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/canonicalize-low-bit-mask-v2-and-icmp-eq-to-icmp-ule.ll
  llvm/test/Transforms/InstCombine/canonicalize-low-bit-mask-v2-and-icmp-ne-to-icmp-ugt.ll
  llvm/test/Transforms/InstCombine/canonicalize-low-bit-mask-v3-and-icmp-eq-to-icmp-ule.ll
  llvm/test/Transforms/InstCombine/canonicalize-low-bit-mask-v3-and-icmp-ne-to-icmp-ugt.ll
  llvm/test/Transforms/InstCombine/icmp-and-lowbit-mask.ll
  llvm/test/Transforms/InstCombine/icmp-of-and-x.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159059.555229.patch
Type: text/x-patch
Size: 9427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/f79c1083/attachment.bin>


More information about the llvm-commits mailing list