Make sure operand does have size and element type operands.

llvm-svn: 30999
This commit is contained in:
Evan Cheng 2006-10-17 17:06:35 +00:00
parent feb50708eb
commit 1e3a39cd08
1 changed files with 2 additions and 1 deletions

View 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;
}