OSDN Git Service

Make sure operand does have size and element type operands.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 17 Oct 2006 17:06:35 +0000 (17:06 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 17 Oct 2006 17:06:35 +0000 (17:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30999 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index a27adba..474ae28 100644 (file)
@@ -3114,7 +3114,8 @@ SDOperand DAGCombiner::visitVVECTOR_SHUFFLE(SDNode *N) {
     // look though conversions that change things like v4f32 to v2f64.
     if (V->getOpcode() == ISD::VBIT_CONVERT) {
       SDOperand ConvInput = V->getOperand(0);
-      if (NumElts ==
+      if (ConvInput.getValueType() == MVT::Vector &&
+          NumElts ==
           ConvInput.getConstantOperandVal(ConvInput.getNumOperands()-2))
         V = ConvInput.Val;
     }