@@ -200,11 +200,6 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
200
200
201
201
setOperationAction(ISD::UADDO, isPPC64 ? MVT::i64 : MVT::i32, Custom);
202
202
203
- // On P10, the default lowering generates better code using the
204
- // setbc instruction.
205
- if (!Subtarget.hasP10Vector() && isPPC64)
206
- setOperationAction(ISD::SSUBO, MVT::i32, Custom);
207
-
208
203
// Match BITREVERSE to customized fast code sequence in the td file.
209
204
setOperationAction(ISD::BITREVERSE, MVT::i32, Legal);
210
205
setOperationAction(ISD::BITREVERSE, MVT::i64, Legal);
@@ -12021,36 +12016,6 @@ SDValue PPCTargetLowering::LowerUaddo(SDValue Op, SelectionDAG &DAG) const {
12021
12016
return Res;
12022
12017
}
12023
12018
12024
- SDValue PPCTargetLowering::LowerSSUBO(SDValue Op, SelectionDAG &DAG) const {
12025
-
12026
- SDLoc dl(Op);
12027
-
12028
- SDValue LHS64 = DAG.getNode(ISD::ANY_EXTEND, dl, MVT::i64, Op.getOperand(0));
12029
- SDValue RHS64 = DAG.getNode(ISD::ANY_EXTEND, dl, MVT::i64, Op.getOperand(1));
12030
-
12031
- SDValue Sub = DAG.getNode(ISD::SUB, dl, MVT::i64, LHS64, RHS64);
12032
-
12033
- SDValue Extsw = DAG.getNode(ISD::SIGN_EXTEND_INREG, dl, MVT::i64, Sub,
12034
- DAG.getValueType(MVT::i32));
12035
-
12036
- SDValue Xor = DAG.getNode(ISD::XOR, dl, MVT::i64, Extsw, Sub);
12037
-
12038
- SDValue Addic = DAG.getNode(ISD::ADDC, dl, DAG.getVTList(MVT::i64, MVT::Glue),
12039
- Xor, DAG.getConstant(-1, dl, MVT::i64));
12040
-
12041
- SDValue Overflow =
12042
- DAG.getNode(ISD::SUBE, dl, DAG.getVTList(MVT::i64, MVT::Glue), Xor, Addic,
12043
- Addic.getValue(1));
12044
-
12045
- SDValue OverflowTrunc =
12046
- DAG.getNode(ISD::TRUNCATE, dl, Op.getNode()->getValueType(1), Overflow);
12047
- SDValue SubTrunc =
12048
- (Sub->getValueType(0) != Op.getNode()->getValueType(0))
12049
- ? DAG.getNode(ISD::TRUNCATE, dl, Op.getNode()->getValueType(0), Sub)
12050
- : Sub;
12051
- return DAG.getMergeValues({SubTrunc, OverflowTrunc}, dl);
12052
- }
12053
-
12054
12019
/// LowerOperation - Provide custom lowering hooks for some operations.
12055
12020
///
12056
12021
SDValue PPCTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
@@ -12073,8 +12038,6 @@ SDValue PPCTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
12073
12038
case ISD::SETCC: return LowerSETCC(Op, DAG);
12074
12039
case ISD::INIT_TRAMPOLINE: return LowerINIT_TRAMPOLINE(Op, DAG);
12075
12040
case ISD::ADJUST_TRAMPOLINE: return LowerADJUST_TRAMPOLINE(Op, DAG);
12076
- case ISD::SSUBO:
12077
- return LowerSSUBO(Op, DAG);
12078
12041
12079
12042
case ISD::INLINEASM:
12080
12043
case ISD::INLINEASM_BR: return LowerINLINEASM(Op, DAG);
0 commit comments