[llvm] [ARM] Stop gluing ALU nodes to branches / selects (PR #116970)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 05:45:24 PST 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 8c56dd3040f295874e3d5742b5dfc109adf1f728 2487cff29631082f4309536a9ceb2cc8fd5fc4d7 --extensions cpp,h -- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp llvm/lib/Target/ARM/ARMISelLowering.cpp llvm/lib/Target/ARM/ARMISelLowering.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 33da0703fa..fd024ffdee 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -4171,8 +4171,8 @@ void ARMDAGToDAGISel::Select(SDNode *N) {
 
     SDValue Tmp2 = CurDAG->getTargetConstant(CC, dl, MVT::i32);
     Chain = CurDAG->getCopyToReg(Chain, dl, ARM::CPSR, Flags, SDValue());
-    SDValue Ops[] = {N1, Tmp2, CurDAG->getRegister(ARM::CPSR, MVT::i32),
-                     Chain, Chain.getValue(1)};
+    SDValue Ops[] = {N1, Tmp2, CurDAG->getRegister(ARM::CPSR, MVT::i32), Chain,
+                     Chain.getValue(1)};
     CurDAG->SelectNodeTo(N, Opc, MVT::Other, Ops);
     return;
   }
@@ -4240,7 +4240,6 @@ void ARMDAGToDAGISel::Select(SDNode *N) {
                          N->getOperand(3)};
         CurDAG->MorphNodeTo(N, ARMISD::CMOV, N->getVTList(), Ops);
       }
-
     }
     // Other cases are autogenerated.
     break;

``````````

</details>


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


More information about the llvm-commits mailing list