mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 04:05:05 +00:00
Delete some dead code in SelectionDAG (NFC)
Differential Revision: https://reviews.llvm.org/D24435 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283505 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12bd3d1963
commit
4a0edca8c6
@ -1031,16 +1031,10 @@ public:
|
||||
EVT VT2, ArrayRef<SDValue> Ops);
|
||||
SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, EVT VT1,
|
||||
EVT VT2, EVT VT3, ArrayRef<SDValue> Ops);
|
||||
SDNode *SelectNodeTo(SDNode *N, unsigned MachineOpc, EVT VT1,
|
||||
EVT VT2, EVT VT3, EVT VT4, ArrayRef<SDValue> Ops);
|
||||
SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, EVT VT1,
|
||||
EVT VT2, SDValue Op1);
|
||||
SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, EVT VT1,
|
||||
EVT VT2, SDValue Op1, SDValue Op2);
|
||||
SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, EVT VT1,
|
||||
EVT VT2, SDValue Op1, SDValue Op2, SDValue Op3);
|
||||
SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, EVT VT1,
|
||||
EVT VT2, EVT VT3, SDValue Op1, SDValue Op2, SDValue Op3);
|
||||
SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, SDVTList VTs,
|
||||
ArrayRef<SDValue> Ops);
|
||||
|
||||
@ -1064,10 +1058,6 @@ public:
|
||||
SDValue Op1, SDValue Op2, SDValue Op3);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT,
|
||||
ArrayRef<SDValue> Ops);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT1,
|
||||
EVT VT2);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT1,
|
||||
EVT VT2, SDValue Op1);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT1,
|
||||
EVT VT2, SDValue Op1, SDValue Op2);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT1,
|
||||
@ -1081,9 +1071,6 @@ public:
|
||||
SDValue Op3);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT1,
|
||||
EVT VT2, EVT VT3, ArrayRef<SDValue> Ops);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT1,
|
||||
EVT VT2, EVT VT3, EVT VT4,
|
||||
ArrayRef<SDValue> Ops);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
ArrayRef<EVT> ResultTys, ArrayRef<SDValue> Ops);
|
||||
MachineSDNode *getMachineNode(unsigned Opcode, const SDLoc &dl, SDVTList VTs,
|
||||
|
@ -2352,7 +2352,6 @@ public:
|
||||
bool isCalledByLegalizer() const { return CalledByLegalizer; }
|
||||
|
||||
void AddToWorklist(SDNode *N);
|
||||
void RemoveFromWorklist(SDNode *N);
|
||||
SDValue CombineTo(SDNode *N, ArrayRef<SDValue> To, bool AddTo = true);
|
||||
SDValue CombineTo(SDNode *N, SDValue Res, bool AddTo = true);
|
||||
SDValue CombineTo(SDNode *N, SDValue Res0, SDValue Res1, bool AddTo = true);
|
||||
|
@ -541,10 +541,6 @@ void TargetLowering::DAGCombinerInfo::AddToWorklist(SDNode *N) {
|
||||
((DAGCombiner*)DC)->AddToWorklist(N);
|
||||
}
|
||||
|
||||
void TargetLowering::DAGCombinerInfo::RemoveFromWorklist(SDNode *N) {
|
||||
((DAGCombiner*)DC)->removeFromWorklist(N);
|
||||
}
|
||||
|
||||
SDValue TargetLowering::DAGCombinerInfo::
|
||||
CombineTo(SDNode *N, ArrayRef<SDValue> To, bool AddTo) {
|
||||
return ((DAGCombiner*)DC)->CombineTo(N, &To[0], To.size(), AddTo);
|
||||
|
@ -5900,21 +5900,6 @@ SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
return SelectNodeTo(N, MachineOpc, VTs, Ops);
|
||||
}
|
||||
|
||||
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
EVT VT1, EVT VT2, EVT VT3, EVT VT4,
|
||||
ArrayRef<SDValue> Ops) {
|
||||
SDVTList VTs = getVTList(VT1, VT2, VT3, VT4);
|
||||
return SelectNodeTo(N, MachineOpc, VTs, Ops);
|
||||
}
|
||||
|
||||
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
EVT VT1, EVT VT2,
|
||||
SDValue Op1) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
SDValue Ops[] = { Op1 };
|
||||
return SelectNodeTo(N, MachineOpc, VTs, Ops);
|
||||
}
|
||||
|
||||
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
EVT VT1, EVT VT2,
|
||||
SDValue Op1, SDValue Op2) {
|
||||
@ -5923,24 +5908,6 @@ SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
return SelectNodeTo(N, MachineOpc, VTs, Ops);
|
||||
}
|
||||
|
||||
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
EVT VT1, EVT VT2,
|
||||
SDValue Op1, SDValue Op2,
|
||||
SDValue Op3) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
SDValue Ops[] = { Op1, Op2, Op3 };
|
||||
return SelectNodeTo(N, MachineOpc, VTs, Ops);
|
||||
}
|
||||
|
||||
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
EVT VT1, EVT VT2, EVT VT3,
|
||||
SDValue Op1, SDValue Op2,
|
||||
SDValue Op3) {
|
||||
SDVTList VTs = getVTList(VT1, VT2, VT3);
|
||||
SDValue Ops[] = { Op1, Op2, Op3 };
|
||||
return SelectNodeTo(N, MachineOpc, VTs, Ops);
|
||||
}
|
||||
|
||||
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
SDVTList VTs,ArrayRef<SDValue> Ops) {
|
||||
SDNode *New = MorphNodeTo(N, ~MachineOpc, VTs, Ops);
|
||||
@ -6080,19 +6047,6 @@ MachineSDNode *SelectionDAG::getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *SelectionDAG::getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
EVT VT1, EVT VT2) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
return getMachineNode(Opcode, dl, VTs, None);
|
||||
}
|
||||
|
||||
MachineSDNode *SelectionDAG::getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
EVT VT1, EVT VT2, SDValue Op1) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
SDValue Ops[] = { Op1 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *SelectionDAG::getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
EVT VT1, EVT VT2, SDValue Op1,
|
||||
SDValue Op2) {
|
||||
@ -6140,13 +6094,6 @@ MachineSDNode *SelectionDAG::getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *SelectionDAG::getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
EVT VT1, EVT VT2, EVT VT3, EVT VT4,
|
||||
ArrayRef<SDValue> Ops) {
|
||||
SDVTList VTs = getVTList(VT1, VT2, VT3, VT4);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *SelectionDAG::getMachineNode(unsigned Opcode, const SDLoc &dl,
|
||||
ArrayRef<EVT> ResultTys,
|
||||
ArrayRef<SDValue> Ops) {
|
||||
|
@ -653,8 +653,6 @@ public:
|
||||
return CurInst ? CurInst->getDebugLoc() : DebugLoc();
|
||||
}
|
||||
|
||||
unsigned getSDNodeOrder() const { return SDNodeOrder; }
|
||||
|
||||
void CopyValueToVirtualRegister(const Value *V, unsigned Reg);
|
||||
|
||||
void visit(const Instruction &I);
|
||||
|
Loading…
x
Reference in New Issue
Block a user