[llvm] [AArch64] Use SVE for load-extend-broadcast (PR #221689)
Jack Styles via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 06:35:08 PDT 2026
================
@@ -30233,6 +30142,18 @@ static SDValue performDUPCombine(SDNode *N,
// v4i32 = SCALAR_TO_VECTOR (i32 (zextloadi8 addr)) ; Matches to ldr b0
// v4i32 = DUPLANE32 (v4i32), 0
if (auto *LD = dyn_cast<LoadSDNode>(Op)) {
+ if (SubTarget->preferSVEVectors() &&
+ SubTarget->isSVEorStreamingSVEAvailable() && Op->hasOneUse() &&
+ VT.getScalarType().isInteger()) {
+ EVT ScalaleVT = getContainerForFixedLengthVector(DCI.DAG, VT);
+ SDValue SplatNode =
+ DCI.DAG.getNode(ISD::SPLAT_VECTOR, DL, ScalaleVT, Op);
+ // Using SVE on 64bit Vectors with the same scalar type is not
+ // profitable
+ if (!(VT.is64BitVector() && SplatNode.getValueType().getScalarType() ==
----------------
Stylie777 wrote:
Yes, I've updated this.
https://github.com/llvm/llvm-project/pull/221689
More information about the llvm-commits
mailing list