[PATCH] D84101: [ARM] Add predicated add reduction patterns
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 18 07:53:29 PDT 2020
dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samparker, efriedma, simon_tatham, ostannard.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
Given a vecreduce.add(select(p, x, 0)), we can convert that to a predicated vaddv, as the negative value for the select is the identity value, a zero. That is what this patch does for the vaddv, vaddva, vaddlv and vaddlva instruction, copying the existing patterns to also handle predication through a select.
https://reviews.llvm.org/D84101
Files:
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/test/CodeGen/Thumb2/mve-vecreduce-addpred.ll
llvm/test/CodeGen/Thumb2/mve-vecreduce-mlapred.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84101.279003.patch
Type: text/x-patch
Size: 65016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200718/93ef6e49/attachment.bin>
More information about the llvm-commits
mailing list