[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
Sun Mar 26 19:22:43 PDT 2023


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

Add comments to each non nullptr conditional.

Refactor leading ones and zeros comparison to use equality operator.


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.508458.patch
Type: text/x-patch
Size: 21350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230327/9d392a9e/attachment-0001.bin>


More information about the llvm-commits mailing list