[llvm] [AArch64] Check for negative numbers when adjusting icmps (PR #140999)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 08:33:54 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 llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
``````````

</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 5d44bc841..aced09812 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -3878,8 +3878,8 @@ void ARMDAGToDAGISel::Select(SDNode *N) {
         }
       }
 
-      // In thumb1, If we have (x & C1), and C1 is an appropriate mask, we can transform it
-      // into "((x << n) >> n)", assuming that C1 cannot fit 
+      // In thumb1, If we have (x & C1), and C1 is an appropriate mask, we can
+      // transform it into "((x << n) >> n)", assuming that C1 cannot fit
 
       if (Subtarget->isThumb1Only() && isMask_32(Imm) && Imm > 255) {
         unsigned ShiftBits = llvm::countl_zero(Mask);

``````````

</details>


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


More information about the llvm-commits mailing list