[PATCH] D101169: [AArch64][SVE] Use SIMD variant of INSR when scalar is the result of a vector extract
Bradley Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 23 08:45:41 PDT 2021
bsmith created this revision.
bsmith added reviewers: paulwalker-arm, peterwaller-arm, joechrisellis, david-arm.
Herald added subscribers: tmatheson, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
bsmith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
At the intrinsic layer the sve.insr operation takes a scalar. When this
scalar is an integer we are forcing a data transition between GPRs and
ZPRs that is potentially costly.
Often the integer scalar is the result of a vector extract, when
performing a reduction for example. In such cases we should keep all
data within the ZPRs.
Co-authored-by: Paul Walker <paul.walker at arm.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D101169
Files:
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-insr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101169.340054.patch
Type: text/x-patch
Size: 5159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210423/a0c17515/attachment.bin>
More information about the llvm-commits
mailing list