[llvm] [ARM] Set operation action for UMULO and SMULO as Custom if not Thumb1 (PR #154253)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 18 19:57:01 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 h,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/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 66e452126..cb036995f 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -4971,7 +4971,7 @@ SDValue ARMTargetLowering::LowerALUO(SDValue Op, SelectionDAG &DAG) const {
     ARMCC::CondCodes NECond = ARMCC::NE;
     SDValue NECondValue = DAG.getConstant(NECond, dl, MVT::i32);
     Overflow =
-        DAG.getNode(ARMISD::CMOV, dl, MVT::i32, HighWord, 
+        DAG.getNode(ARMISD::CMOV, dl, MVT::i32, HighWord,
                     DAG.getConstant(1, dl, MVT::i32), NECondValue, Flags);
     break;
   }
@@ -4994,7 +4994,8 @@ SDValue ARMTargetLowering::LowerALUO(SDValue Op, SelectionDAG &DAG) const {
     ARMCC::CondCodes NECond = ARMCC::NE;
     SDValue NECondValue = DAG.getConstant(NECond, dl, MVT::i32);
     Overflow =
-        DAG.getNode(ARMISD::CMOV, dl, MVT::i32, SubResult, DAG.getConstant(1, dl, MVT::i32), NECondValue, Flags);
+        DAG.getNode(ARMISD::CMOV, dl, MVT::i32, SubResult,
+                    DAG.getConstant(1, dl, MVT::i32), NECondValue, Flags);
     break;
   }
   default: {

``````````

</details>


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


More information about the llvm-commits mailing list