[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
Wed Jan 15 07:40:25 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:
Why using PPCISD::ADDC/ PPCISD::SUBC to lower UADDO/USUBO, instead of using the replacement nodes; ISD::UADDO_CARRY/USUBO_CARRY? (these new nodes are themselves lowered using PPCISD::ADDC/ PPCISD::SUBC)
https://github.com/llvm/llvm-project/pull/116984
More information about the llvm-commits
mailing list