Skip to content
Commit 354604a2 authored by Bradley Smith's avatar Bradley Smith
Browse files

[AArch64][SVE] Use SIMD variant of INSR when scalar is the result of a vector extract



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: default avatarPaul Walker <paul.walker@arm.com>

Differential Revision: https://reviews.llvm.org/D101169
parent 89085bcc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment