[llvm] [WIP][SDAG] Add partial_reduce_sumla node (PR #141267)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 11:24:26 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,h -- llvm/include/llvm/CodeGen/ISDOpcodes.h llvm/include/llvm/CodeGen/TargetLowering.h llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp llvm/lib/Target/RISCV/RISCVISelLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 1bcc82fef..d98312432 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -12726,7 +12726,7 @@ SDValue DAGCombiner::foldPartialReduceMLAMulOp(SDNode *N) {
   EVT AccElemVT = Acc.getValueType().getVectorElementType();
   if (Op1.getValueType().getVectorElementType() != AccElemVT &&
       NewOpc != N->getOpcode())
-      return SDValue();
+    return SDValue();
 
   // Only perform these combines if the target supports folding
   // the extends into the operation.

``````````

</details>


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


More information about the llvm-commits mailing list