[PATCH] D102938: [AArch64] Generate LD1 for anyext i8 or i16 vector load
Andrew Savonichev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 21 11:41:28 PDT 2021
asavonic created this revision.
asavonic added a reviewer: dmgreen.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
asavonic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The existing LD1 patterns do not cover cases where result type does
not match the memory type. This happens when illegal vector types are
extended and scalarized, for example:
load <2 x i16>* %v2i16
is lowered into:
// first element
(v4i32 (insert_subvector (v2i32 (scalar_to_vector (load anyext from i16)))))
// other elements
(v4i32 (insert_vector_elt (i32 (load anyext from i16)) idx))
Before this patch these patterns were compiled into LDR + INS.
Now they are compiled into LD1.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102938
Files:
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/CodeGen/AArch64/aarch64-load-ext.ll
llvm/test/CodeGen/AArch64/sadd_sat_vec.ll
llvm/test/CodeGen/AArch64/ssub_sat_vec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102938.347087.patch
Type: text/x-patch
Size: 9255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210521/0e6ce399/attachment.bin>
More information about the llvm-commits
mailing list