[PATCH] D159329: [InstCombine] Recognize `(icmp eq/ne (and X, ~Mask), 0)` pattern in `foldICmpWithLowBitMaskedVal`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 12:55:31 PDT 2023


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

Rebase


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D159329

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/icmp-and-lowbit-mask.ll
  llvm/test/Transforms/InstCombine/lshr-and-negC-icmpeq-zero.ll
  llvm/test/Transforms/InstCombine/lshr-and-signbit-icmpeq-zero.ll
  llvm/test/Transforms/InstCombine/shl-and-negC-icmpeq-zero.ll
  llvm/test/Transforms/InstCombine/shl-and-signbit-icmpeq-zero.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159329.556703.patch
Type: text/x-patch
Size: 12152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230913/f9216728/attachment.bin>


More information about the llvm-commits mailing list