[llvm] 7489301 - [AArch64][LV] Disable maximising bandwidth for streaming compatible sve

Dinar Temirbulatov via llvm-commits llvm-commits at lists.llvm.org
Tue May 23 06:25:33 PDT 2023


Author: Dinar Temirbulatov
Date: 2023-05-23T13:24:01Z
New Revision: 7489301c03c5406a7e54e108df1c5a712b00ae90

URL: https://github.com/llvm/llvm-project/commit/7489301c03c5406a7e54e108df1c5a712b00ae90
DIFF: https://github.com/llvm/llvm-project/commit/7489301c03c5406a7e54e108df1c5a712b00ae90.diff

LOG: [AArch64][LV] Disable maximising bandwidth for streaming compatible sve

Fixing last commit by adding actual change to AArch64TargetTransformInfo.cpp

Differential Revision: https://reviews.llvm.org/D150336

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index 191bdabe45882..31d6d97bf26ad 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -211,7 +211,8 @@ bool AArch64TTIImpl::areInlineCompatible(const Function *Caller,
 bool AArch64TTIImpl::shouldMaximizeVectorBandwidth(
     TargetTransformInfo::RegisterKind K) const {
   assert(K != TargetTransformInfo::RGK_Scalar);
-  return K == TargetTransformInfo::RGK_FixedWidthVector;
+  return (K == TargetTransformInfo::RGK_FixedWidthVector &&
+          !ST->forceStreamingCompatibleSVE());
 }
 
 /// Calculate the cost of materializing a 64-bit value. This helper


        


More information about the llvm-commits mailing list