[llvm] [PowerPC] Add custom lowering for SADD overflow for i32 and i64 (PR #159255)
Aditi Medhane via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 16 23:49:44 PST 2025
================
@@ -12614,6 +12617,31 @@ SDValue PPCTargetLowering::LowerSSUBO(SDValue Op, SelectionDAG &DAG) const {
return DAG.getMergeValues({Sub, OverflowTrunc}, dl);
}
+SDValue PPCTargetLowering::LowerSADDO(SDValue Op, SelectionDAG &DAG) const {
+
+ SDLoc dl(Op);
+ SDValue LHS = Op.getOperand(0);
+ SDValue RHS = Op.getOperand(1);
+ EVT VT = Op.getNode()->getValueType(0);
+
+ SDValue Add = DAG.getNode(ISD::ADD, dl, VT, LHS, RHS);
----------------
AditiRM wrote:
yes updated all the variable names a/c to usecases.
https://github.com/llvm/llvm-project/pull/159255
More information about the llvm-commits
mailing list