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

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 07:54:54 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);
----------------
bzEq wrote:

IIRC, there is no uaddo_carry operator defined for pattern matching in order to select proper instruction. Correct me if I am wrong. 

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


More information about the llvm-commits mailing list