[PATCH] D118317: [InstCombine] Fold and-reduce idiom

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 10:15:28 PST 2022


mkazantsev updated this revision to Diff 403718.
mkazantsev added a comment.

NFC refactoring. Used pattern match following @RKSimon's comment. Looks not so ugly, and it makes support of further transform proposed by @spatel easier.


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

https://reviews.llvm.org/D118317

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/icmp-vec.ll
  llvm/test/Transforms/InstCombine/reduction-and-sext-zext-i1.ll
  llvm/test/Transforms/InstCombine/reduction-or-sext-zext-i1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118317.403718.patch
Type: text/x-patch
Size: 6299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220127/f76ce66f/attachment.bin>


More information about the llvm-commits mailing list