[llvm] [AArch64] fuse constant addition after sbb (PR #185117)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 06:11:37 PDT 2026


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 origin/main HEAD --extensions cpp -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</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 2c766b29d..f7b407660 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -23368,8 +23368,7 @@ static SDValue performAddWithSBCCombine(SDNode *N, SelectionDAG &DAG) {
   // AArch64 SBC (non-flag-setting) has only one output; no flags guard needed.
   SDLoc DL(N);
   return DAG.getNode(AArch64ISD::SBC, DL, VT, SBC.getOperand(0),
-                     DAG.getNegative(C, DL, VT),
-                     SBC.getOperand(2));
+                     DAG.getNegative(C, DL, VT), SBC.getOperand(2));
 }
 
 static SDValue performAddSubCombine(SDNode *N,

``````````

</details>


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


More information about the llvm-commits mailing list