[llvm] [AArch64][SVE] Enable max vector bandwidth for SVE (PR #109671)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 07:46:59 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff a4232dc676908548afa36d4f4ad740131ce385e2 1792cedb4ec337be4f6e8d7eda9fd34309c4b77b --extensions cpp -- llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index 20b80dcd9d..8531056ff5 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -334,9 +334,9 @@ bool AArch64TTIImpl::shouldMaximizeVectorBandwidth(
     TargetTransformInfo::RegisterKind K) const {
   assert(K != TargetTransformInfo::RGK_Scalar);
   return ((K == TargetTransformInfo::RGK_FixedWidthVector &&
-          ST->isNeonAvailable()) ||
+           ST->isNeonAvailable()) ||
           (K == TargetTransformInfo::RGK_ScalableVector &&
-          ST->isSVEorStreamingSVEAvailable()));
+           ST->isSVEorStreamingSVEAvailable()));
 }
 
 /// Calculate the cost of materializing a 64-bit value. This helper

``````````

</details>


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


More information about the llvm-commits mailing list