[llvm] [AArch64][SelectionDAG] Enable new partial reduction lowering by default (PR #143565)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 09:07:37 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index e610a6359..aba95f0f7 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -2238,15 +2238,15 @@ void AArch64TargetLowering::addTypeForFixedLengthSVE(MVT VT) {
   if (VT.getVectorElementType() == MVT::i64) {
     setPartialReduceMLAAction(MLAOps, VT,
                               MVT::getVectorVT(MVT::i8, NumElts * 8), Custom);
-    setPartialReduceMLAAction(
-        MLAOps, VT, MVT::getVectorVT(MVT::i16, NumElts * 4), Custom);
-    setPartialReduceMLAAction(
-        MLAOps, VT, MVT::getVectorVT(MVT::i32, NumElts * 2), Custom);
+    setPartialReduceMLAAction(MLAOps, VT,
+                              MVT::getVectorVT(MVT::i16, NumElts * 4), Custom);
+    setPartialReduceMLAAction(MLAOps, VT,
+                              MVT::getVectorVT(MVT::i32, NumElts * 2), Custom);
   } else if (VT.getVectorElementType() == MVT::i32) {
     setPartialReduceMLAAction(MLAOps, VT,
                               MVT::getVectorVT(MVT::i8, NumElts * 4), Custom);
-    setPartialReduceMLAAction(
-        MLAOps, VT, MVT::getVectorVT(MVT::i16, NumElts * 2), Custom);
+    setPartialReduceMLAAction(MLAOps, VT,
+                              MVT::getVectorVT(MVT::i16, NumElts * 2), Custom);
   } else if (VT.getVectorElementType() == MVT::i16) {
     setPartialReduceMLAAction(MLAOps, VT,
                               MVT::getVectorVT(MVT::i8, NumElts * 2), Custom);

``````````

</details>


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


More information about the llvm-commits mailing list