[PATCH] D65746: [ARM] Generate VHADDs/VHSUBs
oliver cruickshank via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 07:29:36 PDT 2019
oliverlars created this revision.
oliverlars added reviewers: t.p.northover, dmgreen, samparker, SjoerdMeijer, simon_tatham.
Herald added subscribers: kristof.beyls, javed.absar.
Herald added a project: LLVM.
This adds support for generating VHADDs (vector half add) and VHSUBs (vector half sub) from a VSHR (vector shift right) and VADD/VSUB (vector add/sub).
This is done from auto vectorising a loop with a pattern like C[i] = (A[i] + B[i])/2.
The instruction supports both signed and unsigned ints.
Repository:
rL LLVM
https://reviews.llvm.org/D65746
Files:
lib/Target/ARM/ARMInstrMVE.td
test/CodeGen/Thumb2/mve-vhaddsub.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65746.213352.patch
Type: text/x-patch
Size: 12987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190805/97105413/attachment.bin>
More information about the llvm-commits
mailing list