mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Now that BUILD_VECTOR operands are allowed to be
bigger than the vector element type, turn checking of the operand type back on again, appropriately adjusted. llvm-svn: 69516
This commit is contained in:
parent
2a830a7382
commit
870c1f4240
@ -762,15 +762,12 @@ void SelectionDAG::VerifyNode(SDNode *N) {
|
||||
assert(N->getValueType(0).isVector() && "Wrong return type!");
|
||||
assert(N->getNumOperands() == N->getValueType(0).getVectorNumElements() &&
|
||||
"Wrong number of operands!");
|
||||
// FIXME: Change vector_shuffle to a variadic node with mask elements being
|
||||
// operands of the node. Currently the mask is a BUILD_VECTOR passed as an
|
||||
// operand, and it is not always possible to legalize it. Turning off the
|
||||
// following checks at least makes it possible to legalize most of the time.
|
||||
// MVT EltVT = N->getValueType(0).getVectorElementType();
|
||||
// for (SDNode::op_iterator I = N->op_begin(), E = N->op_end(); I != E; ++I)
|
||||
// assert((I->getValueType() == EltVT ||
|
||||
// I->getValueType() == TLI.getTypeToTransformTo(EltVT)) &&
|
||||
// "Wrong operand type!");
|
||||
MVT EltVT = N->getValueType(0).getVectorElementType();
|
||||
for (SDNode::op_iterator I = N->op_begin(), E = N->op_end(); I != E; ++I)
|
||||
assert((I->getValueType() == EltVT ||
|
||||
(EltVT.isInteger() && I->getValueType().isInteger() &&
|
||||
EltVT.bitsLE(I->getValueType()))) &&
|
||||
"Wrong operand type!");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user