diff options
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a27adba33b..474ae281f9 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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; } |