[llvm] [ARM] Replace ABS and tABS machine nodes with custom lowering (PR #156717)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 3 16:48:12 PDT 2025


================
@@ -14079,6 +14014,48 @@ static SDValue PerformSubCSINCCombine(SDNode *N, SelectionDAG &DAG) {
                      CSINC.getOperand(3));
 }
 
+static bool isNegatedInteger(SDValue Op) {
+  return Op.getOpcode() == ISD::SUB && isNullConstant(Op.getOperand(0));
+}
+
+static SDValue getNegatedInteger(SDValue Op, SelectionDAG &DAG) {
----------------
AZero13 wrote:

Thank you!

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


More information about the llvm-commits mailing list