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

Maryam Moghadas via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 09:24:48 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);
----------------
maryammo wrote:

According to `include/llvm/CodeGen/ISDOpcodes.h`, UADDO_CARRY/USUBO_CARRY replace the ADDC/SUBC  (UADDO/USUBO dont replace ADDC/SUBC).  ADDC/SUBC are deprecated in favor of  UADDO_CARRY and USUBO_CARRY.

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


More information about the llvm-commits mailing list