Oops, remove these too.
authorChris Lattner <sabre@nondot.org>
Wed, 13 Apr 2005 02:47:57 +0000 (02:47 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 Apr 2005 02:47:57 +0000 (02:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21272 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 08b702f4a33e33e87c3c1f9a53b468ed88c6ac16..dc862b38beabd100769e844ed47abc4fb18d6e55 100644 (file)
@@ -943,10 +943,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
   case ISD::SHL:
   case ISD::SRL:
   case ISD::SRA:
-    if (N2.getOpcode() == ISD::ZERO_EXTEND_INREG || 
-        N2.getOpcode() == ISD::SIGN_EXTEND_INREG) {
+    if (N2.getOpcode() == ISD::SIGN_EXTEND_INREG)
       return getNode(Opcode, VT, N1, N2.getOperand(0));
-    }
     break;
   }
 
@@ -1042,10 +1040,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
   case ISD::SRA_PARTS:
   case ISD::SRL_PARTS:
   case ISD::SHL_PARTS:
-    if (N3.getOpcode() == ISD::ZERO_EXTEND_INREG || 
-        N3.getOpcode() == ISD::SIGN_EXTEND_INREG) {
+    if (N3.getOpcode() == ISD::SIGN_EXTEND_INREG)
       return getNode(Opcode, VT, N1, N2, N3.getOperand(0));
-    }
     break;
   }