diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-12-22 21:16:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-12-22 21:16:08 +0000 |
| commit | 177d7af5d514ee5e3a7a87495b8e2818e6f2ce57 (patch) | |
| tree | 72b4c3dc7ef7c7ec49eaeacf1ee079d043c336a9 /llvm | |
| parent | 6b0325aa2690a89fc1bb560bce58677ce9674de2 (diff) | |
| download | bcm5719-llvm-177d7af5d514ee5e3a7a87495b8e2818e6f2ce57.tar.gz bcm5719-llvm-177d7af5d514ee5e3a7a87495b8e2818e6f2ce57.zip | |
remove dead code
llvm-svn: 24965
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelPattern.cpp | 13 | ||||
| -rw-r--r-- | llvm/lib/Target/IA64/IA64ISelPattern.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelPattern.cpp | 10 |
5 files changed, 0 insertions, 37 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index be6b04dfe8a..58d547e55d3 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -589,12 +589,6 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { AddLegalizedOperand(Op.getValue(0), Result); AddLegalizedOperand(Op.getValue(1), Result.getValue(1)); return Result.getValue(Op.ResNo); - case ISD::ImplicitDef: - Tmp1 = LegalizeOp(Node->getOperand(0)); - if (Tmp1 != Node->getOperand(0)) - Result = DAG.getNode(ISD::ImplicitDef, MVT::Other, - Tmp1, Node->getOperand(1)); - break; case ISD::UNDEF: { MVT::ValueType VT = Op.getValueType(); switch (TLI.getOperationAction(ISD::UNDEF, VT)) { diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3438863c903..c17937d05eb 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1874,7 +1874,6 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const { case ISD::TargetConstantPool: return "TargetConstantPool"; case ISD::CopyToReg: return "CopyToReg"; case ISD::CopyFromReg: return "CopyFromReg"; - case ISD::ImplicitDef: return "ImplicitDef"; case ISD::UNDEF: return "undef"; // Unary operators diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp index 44b38282f01..2ce18e1ae31 100644 --- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp @@ -1600,19 +1600,6 @@ void AlphaISel::Select(SDOperand N) { return; } - case ISD::ImplicitDef: - ++count_ins; - Select(N.getOperand(0)); - switch(N.getValueType()) { - case MVT::f32: Opc = Alpha::IDEF_F32; break; - case MVT::f64: Opc = Alpha::IDEF_F64; break; - case MVT::i64: Opc = Alpha::IDEF_I; break; - default: assert(0 && "should have been legalized"); - }; - BuildMI(BB, Opc, 0, - cast<RegisterSDNode>(N.getOperand(1))->getReg()); - return; - case ISD::EntryToken: return; // Noop case ISD::TokenFactor: diff --git a/llvm/lib/Target/IA64/IA64ISelPattern.cpp b/llvm/lib/Target/IA64/IA64ISelPattern.cpp index 7c2b38c51b9..a98c275a923 100644 --- a/llvm/lib/Target/IA64/IA64ISelPattern.cpp +++ b/llvm/lib/Target/IA64/IA64ISelPattern.cpp @@ -2281,13 +2281,6 @@ void ISel::Select(SDOperand N) { return; } - case ISD::ImplicitDef: { - Select(N.getOperand(0)); - BuildMI(BB, IA64::IDEF, 0, - cast<RegisterSDNode>(N.getOperand(1))->getReg()); - return; - } - case ISD::BRCOND: { MachineBasicBlock *Dest = cast<BasicBlockSDNode>(N.getOperand(2))->getBasicBlock(); diff --git a/llvm/lib/Target/PowerPC/PPCISelPattern.cpp b/llvm/lib/Target/PowerPC/PPCISelPattern.cpp index 42495bcb568..bae19f8fb7e 100644 --- a/llvm/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelPattern.cpp @@ -1601,16 +1601,6 @@ void ISel::Select(SDOperand N) { BuildMI(BB, PPC::OR4, 2, Tmp2).addReg(Tmp1).addReg(Tmp1); } return; - case ISD::ImplicitDef: - Select(N.getOperand(0)); - Tmp1 = cast<RegisterSDNode>(N.getOperand(1))->getReg(); - if (N.getOperand(1).getValueType() == MVT::i32) - BuildMI(BB, PPC::IMPLICIT_DEF_GPR, 0, Tmp1); - else if (N.getOperand(1).getValueType() == MVT::f32) - BuildMI(BB, PPC::IMPLICIT_DEF_F4, 0, Tmp1); - else - BuildMI(BB, PPC::IMPLICIT_DEF_F8, 0, Tmp1); - return; case ISD::RET: switch (N.getNumOperands()) { default: |

