[llvm] [AArch64] Use SVE for load-extend-broadcast (PR #221689)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 01:58:59 PDT 2026
================
@@ -1022,9 +1022,9 @@ def FeatureLimited64bitVectorMulBandwidth : SubtargetFeature<
"Has limited 64bit vector multiply bandwidth compared to scalar multiply",
[], InlineIgnore>;
-def FeaturePreferSVEVectors : SubtargetFeature <
- "prefer-sve-vectors", "PreferSVEVectors", "true",
- "Prefer Vectors to use SVE", [], InlineIgnore>;
+def FeatureNoSVELD1RDUP : SubtargetFeature <
+ "no-sve-ld1r-dup", "NoSVELD1RDUP", "true",
+ "Avoid using LD1RX instructions for DUP operations", [], InlineIgnore>;
----------------
sdesmalen-arm wrote:
The purpose of `FeatureNoSVEFPLD1R` is to prefer using load + dup for floating point values instead of LD1R, for both fixed and scalable vectors.
The purpose of this feature is different, namely to avoid favouring a predicated (SVE) LD1R instead of an unpredicated (NEON) ldr* + dup when the value needs zero/sign extending. I think that needs to be made more clear from the name and description; what about `FeatureDontPreferPredicatedLD1R`, and as description "Don't prefer predicated SVE LD1R over sign-extending-load + NEON dup" ?
nit: Can this feature be moved to be alongside the other feature (`FeatureNoSVEFPLD1R`)?
https://github.com/llvm/llvm-project/pull/221689
More information about the llvm-commits
mailing list