CR fix: The ANY_EXTEND can be removed because the input and putput type must be
identical. llvm-svn: 136355
This commit is contained in:
parent
251daee2a7
commit
9708aef2dc
|
|
@ -2838,12 +2838,11 @@ SDValue DAGTypeLegalizer::PromoteIntRes_INSERT_VECTOR_ELT(SDNode *N) {
|
||||||
|
|
||||||
DebugLoc dl = N->getDebugLoc();
|
DebugLoc dl = N->getDebugLoc();
|
||||||
SDValue V0 = GetPromotedInteger(N->getOperand(0));
|
SDValue V0 = GetPromotedInteger(N->getOperand(0));
|
||||||
SDValue ConvertedVector = DAG.getNode(ISD::ANY_EXTEND, dl, NOutVT, V0);
|
|
||||||
|
|
||||||
SDValue ConvElem = DAG.getNode(ISD::ANY_EXTEND, dl,
|
SDValue ConvElem = DAG.getNode(ISD::ANY_EXTEND, dl,
|
||||||
NOutVTElem, N->getOperand(1));
|
NOutVTElem, N->getOperand(1));
|
||||||
return DAG.getNode(ISD::INSERT_VECTOR_ELT, dl, NOutVT,
|
return DAG.getNode(ISD::INSERT_VECTOR_ELT, dl, NOutVT,
|
||||||
ConvertedVector, ConvElem, N->getOperand(2));
|
V0, ConvElem, N->getOperand(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
SDValue DAGTypeLegalizer::PromoteIntOp_EXTRACT_VECTOR_ELT(SDNode *N) {
|
SDValue DAGTypeLegalizer::PromoteIntOp_EXTRACT_VECTOR_ELT(SDNode *N) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue