[PATCH] D125717: [InstCombine] Optimize and of icmps with power-of-2 and contiguous masks

John McIver via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 15:07:59 PST 2023


jmciver updated this revision to Diff 494079.
jmciver added a comment.

Add support for vectors:

- C1 <https://reviews.llvm.org/C1> supports splat vectors with poison/undef.
- C2 supports vectors with unique elements.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125717

Files:
  llvm/include/llvm/IR/PatternMatch.h
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/icmp-logical.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125717.494079.patch
Type: text/x-patch
Size: 22028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230201/6659c5b2/attachment.bin>


More information about the llvm-commits mailing list