remove dead code
authorChris Lattner <sabre@nondot.org>
Thu, 22 Dec 2005 21:16:08 +0000 (21:16 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 Dec 2005 21:16:08 +0000 (21:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24965 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/Alpha/AlphaISelPattern.cpp
lib/Target/IA64/IA64ISelPattern.cpp
lib/Target/PowerPC/PPCISelPattern.cpp

index be6b04dfe8a9b74c898b248b262eecfd8eb47dc7..58d547e55d3a63d538126039c2cb4acf1a2be437 100644 (file)
@@ -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)) {
index 3438863c9033750307ae98d5730446d1f16358fb..c17937d05eb541c85eebc44c232a67de0c2ab407 100644 (file)
@@ -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
index 44b38282f01b4db7c262e593bb2847644be69526..2ce18e1ae31f38dada0401145eb6d833176f6001 100644 (file)
@@ -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:
index 7c2b38c51b9d83e282159588beb7827f176aca97..a98c275a92333ec4e7eadff0c3731c10c5966190 100644 (file)
@@ -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();
index 42495bcb5683dd9056bb82e532c3932011e427a3..bae19f8fb7e845d1595f5570e2af81419ce1435e 100644 (file)
@@ -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: