forked from OSchip/llvm-project
Mips: Remove lowerSELECT_CC
This is the same as the default expansion. llvm-svn: 257346
This commit is contained in:
parent
5ca3c72c5a
commit
a0e5cd55ad
|
@ -277,8 +277,6 @@ MipsTargetLowering::MipsTargetLowering(const MipsTargetMachine &TM,
|
||||||
setOperationAction(ISD::SELECT, MVT::f32, Custom);
|
setOperationAction(ISD::SELECT, MVT::f32, Custom);
|
||||||
setOperationAction(ISD::SELECT, MVT::f64, Custom);
|
setOperationAction(ISD::SELECT, MVT::f64, Custom);
|
||||||
setOperationAction(ISD::SELECT, MVT::i32, Custom);
|
setOperationAction(ISD::SELECT, MVT::i32, Custom);
|
||||||
setOperationAction(ISD::SELECT_CC, MVT::f32, Custom);
|
|
||||||
setOperationAction(ISD::SELECT_CC, MVT::f64, Custom);
|
|
||||||
setOperationAction(ISD::SETCC, MVT::f32, Custom);
|
setOperationAction(ISD::SETCC, MVT::f32, Custom);
|
||||||
setOperationAction(ISD::SETCC, MVT::f64, Custom);
|
setOperationAction(ISD::SETCC, MVT::f64, Custom);
|
||||||
setOperationAction(ISD::BRCOND, MVT::Other, Custom);
|
setOperationAction(ISD::BRCOND, MVT::Other, Custom);
|
||||||
|
@ -327,6 +325,8 @@ MipsTargetLowering::MipsTargetLowering(const MipsTargetMachine &TM,
|
||||||
setOperationAction(ISD::BR_CC, MVT::i64, Expand);
|
setOperationAction(ISD::BR_CC, MVT::i64, Expand);
|
||||||
setOperationAction(ISD::SELECT_CC, MVT::i32, Expand);
|
setOperationAction(ISD::SELECT_CC, MVT::i32, Expand);
|
||||||
setOperationAction(ISD::SELECT_CC, MVT::i64, Expand);
|
setOperationAction(ISD::SELECT_CC, MVT::i64, Expand);
|
||||||
|
setOperationAction(ISD::SELECT_CC, MVT::f32, Expand);
|
||||||
|
setOperationAction(ISD::SELECT_CC, MVT::f64, Expand);
|
||||||
setOperationAction(ISD::UINT_TO_FP, MVT::i32, Expand);
|
setOperationAction(ISD::UINT_TO_FP, MVT::i32, Expand);
|
||||||
setOperationAction(ISD::UINT_TO_FP, MVT::i64, Expand);
|
setOperationAction(ISD::UINT_TO_FP, MVT::i64, Expand);
|
||||||
setOperationAction(ISD::FP_TO_UINT, MVT::i32, Expand);
|
setOperationAction(ISD::FP_TO_UINT, MVT::i32, Expand);
|
||||||
|
@ -872,7 +872,6 @@ LowerOperation(SDValue Op, SelectionDAG &DAG) const
|
||||||
case ISD::GlobalTLSAddress: return lowerGlobalTLSAddress(Op, DAG);
|
case ISD::GlobalTLSAddress: return lowerGlobalTLSAddress(Op, DAG);
|
||||||
case ISD::JumpTable: return lowerJumpTable(Op, DAG);
|
case ISD::JumpTable: return lowerJumpTable(Op, DAG);
|
||||||
case ISD::SELECT: return lowerSELECT(Op, DAG);
|
case ISD::SELECT: return lowerSELECT(Op, DAG);
|
||||||
case ISD::SELECT_CC: return lowerSELECT_CC(Op, DAG);
|
|
||||||
case ISD::SETCC: return lowerSETCC(Op, DAG);
|
case ISD::SETCC: return lowerSETCC(Op, DAG);
|
||||||
case ISD::VASTART: return lowerVASTART(Op, DAG);
|
case ISD::VASTART: return lowerVASTART(Op, DAG);
|
||||||
case ISD::VAARG: return lowerVAARG(Op, DAG);
|
case ISD::VAARG: return lowerVAARG(Op, DAG);
|
||||||
|
@ -1648,20 +1647,6 @@ lowerSELECT(SDValue Op, SelectionDAG &DAG) const
|
||||||
SDLoc(Op));
|
SDLoc(Op));
|
||||||
}
|
}
|
||||||
|
|
||||||
SDValue MipsTargetLowering::
|
|
||||||
lowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const
|
|
||||||
{
|
|
||||||
SDLoc DL(Op);
|
|
||||||
EVT Ty = Op.getOperand(0).getValueType();
|
|
||||||
SDValue Cond =
|
|
||||||
DAG.getNode(ISD::SETCC, DL, getSetCCResultType(DAG.getDataLayout(),
|
|
||||||
*DAG.getContext(), Ty),
|
|
||||||
Op.getOperand(0), Op.getOperand(1), Op.getOperand(4));
|
|
||||||
|
|
||||||
return DAG.getNode(ISD::SELECT, DL, Op.getValueType(), Cond, Op.getOperand(2),
|
|
||||||
Op.getOperand(3));
|
|
||||||
}
|
|
||||||
|
|
||||||
SDValue MipsTargetLowering::lowerSETCC(SDValue Op, SelectionDAG &DAG) const {
|
SDValue MipsTargetLowering::lowerSETCC(SDValue Op, SelectionDAG &DAG) const {
|
||||||
assert(!Subtarget.hasMips32r6() && !Subtarget.hasMips64r6());
|
assert(!Subtarget.hasMips32r6() && !Subtarget.hasMips64r6());
|
||||||
SDValue Cond = createFPCmp(DAG, Op);
|
SDValue Cond = createFPCmp(DAG, Op);
|
||||||
|
|
|
@ -430,7 +430,6 @@ namespace llvm {
|
||||||
SDValue lowerGlobalTLSAddress(SDValue Op, SelectionDAG &DAG) const;
|
SDValue lowerGlobalTLSAddress(SDValue Op, SelectionDAG &DAG) const;
|
||||||
SDValue lowerJumpTable(SDValue Op, SelectionDAG &DAG) const;
|
SDValue lowerJumpTable(SDValue Op, SelectionDAG &DAG) const;
|
||||||
SDValue lowerSELECT(SDValue Op, SelectionDAG &DAG) const;
|
SDValue lowerSELECT(SDValue Op, SelectionDAG &DAG) const;
|
||||||
SDValue lowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const;
|
|
||||||
SDValue lowerSETCC(SDValue Op, SelectionDAG &DAG) const;
|
SDValue lowerSETCC(SDValue Op, SelectionDAG &DAG) const;
|
||||||
SDValue lowerVASTART(SDValue Op, SelectionDAG &DAG) const;
|
SDValue lowerVASTART(SDValue Op, SelectionDAG &DAG) const;
|
||||||
SDValue lowerVAARG(SDValue Op, SelectionDAG &DAG) const;
|
SDValue lowerVAARG(SDValue Op, SelectionDAG &DAG) const;
|
||||||
|
|
Loading…
Reference in New Issue