If the result of a BIT_CONVERT is a v1* vector, it doesn't mean its source is a v1* vector.
llvm-svn: 51192
This commit is contained in:
parent
a9a0c1570d
commit
9ac3631fa3
|
@ -7109,10 +7109,13 @@ SDOperand SelectionDAGLegalize::ScalarizeVectorOp(SDOperand Op) {
|
|||
Result = Node->getOperand(0);
|
||||
assert(Result.getValueType() == NewVT);
|
||||
break;
|
||||
case ISD::BIT_CONVERT:
|
||||
Result = DAG.getNode(ISD::BIT_CONVERT, NewVT,
|
||||
ScalarizeVectorOp(Op.getOperand(0)));
|
||||
case ISD::BIT_CONVERT: {
|
||||
SDOperand Op0 = Op.getOperand(0);
|
||||
if (MVT::getVectorNumElements(Op0.getValueType()) == 1)
|
||||
Op0 = ScalarizeVectorOp(Op0);
|
||||
Result = DAG.getNode(ISD::BIT_CONVERT, NewVT, Op0);
|
||||
break;
|
||||
}
|
||||
case ISD::SELECT:
|
||||
Result = DAG.getNode(ISD::SELECT, NewVT, Op.getOperand(0),
|
||||
ScalarizeVectorOp(Op.getOperand(1)),
|
||||
|
|
Loading…
Reference in New Issue