[llvm] [PowerPC] Deprecate uses of ISD::ADDC/ISD::ADDE/ISD::SUBC/ISD::SUBE (PR #116984)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 11:47:13 PST 2025


================
@@ -196,7 +196,11 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
     }
   }
 
+  // PowerPC uses addo,addo_carry,subo,subo_carry to propagate carry.
   setOperationAction(ISD::UADDO, RegVT, Custom);
+  setOperationAction(ISD::USUBO, RegVT, Custom);
----------------
diggerlin wrote:

yes, UADDO and USUBO  are lowered by the function `SDValue PPCTargetLowering::LowerADDSUBO(SDValue Op, SelectionDAG &DAG) ` which use `PPCISD::ADDC/ PPCISD::SUBC` instead of `ISD::ADDC/ISD::SUBC` since the `ISD::ADDC/ISD::ADDE/ISD::SUBC/ISD::SUBE` is deprecated.

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


More information about the llvm-commits mailing list