[llvm] [AArch64] Use SVE for load-extend-broadcast (PR #221689)
Jack Styles via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 07:07:26 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 ScalableVT = getContainerForFixedLengthVector(DCI.DAG, VT);
+ // Using SVE Vectors with the same scalar type is not profitable
+ if (!(ScalableVT.getScalarType() ==
+ LD->getMemoryVT().getScalarType())) {
----------------
Stylie777 wrote:
I've removed the inner if block
https://github.com/llvm/llvm-project/pull/221689
More information about the llvm-commits
mailing list