[llvm] [LV][AArch64] Prefer Fixed over Scalable if cost-model is equal (Neoverse V2) (PR #95819)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 11:09:22 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 35ddc17f36282f24324275e0691fb57e270f113d 6abec3a340c0b2d90ac5edd0286b42b34371a54e -- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index cfe5e0157b..0c8f91f6c1 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4782,7 +4782,7 @@ bool LoopVectorizationPlanner::isMoreProfitable(
   // vectorization.
   bool PreferScalable = false;
   if (!TTI.preferFixedIfEqualToScalable())
-     PreferScalable = A.Width.isScalable() && !B.Width.isScalable();
+    PreferScalable = A.Width.isScalable() && !B.Width.isScalable();
 
   auto CmpFn = [PreferScalable](const InstructionCost &LHS,
                                 const InstructionCost &RHS) {

``````````

</details>


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


More information about the llvm-commits mailing list