[PATCH] D143382: [ARM] Remove reduce(shuffle) if all the lanes are used
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 04:20:09 PST 2023
dmgreen created this revision.
dmgreen added reviewers: samtebbs, NickGuy, ostannard, simon_tatham.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.
This looks for vaddv(shuffle) or vmlav(shuffle, shuffle), with a shuffle where all the lanes are used once. Due to the reduction being commutative the shuffle can be removed.
https://reviews.llvm.org/D143382
Files:
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/Thumb2/mve-vecreduce-add-combine.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143382.495075.patch
Type: text/x-patch
Size: 9257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230206/dacf57cc/attachment.bin>
More information about the llvm-commits
mailing list