[llvm] [AArch64] Enable maximize vector bandwidth for Neoverse-V1, V2 and N1 (PR #166748)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 02:53:31 PST 2025


================
@@ -371,8 +371,15 @@ AArch64TTIImpl::getInlineCallPenalty(const Function *F, const CallBase &Call,
 bool AArch64TTIImpl::shouldMaximizeVectorBandwidth(
     TargetTransformInfo::RegisterKind K) const {
   assert(K != TargetTransformInfo::RGK_Scalar);
-  return (K == TargetTransformInfo::RGK_FixedWidthVector &&
-          ST->isNeonAvailable());
+  switch (ST->getProcFamily()) {
+  case AArch64Subtarget::NeoverseV2:
+  case AArch64Subtarget::NeoverseV1:
+  case AArch64Subtarget::NeoverseN1:
+    return true;
----------------
SamTebbs33 wrote:

Overriding the default for fixed-length wasn't my intention, fixed now. Addressed the other point as well, thanks.

https://github.com/llvm/llvm-project/pull/166748


More information about the llvm-commits mailing list