forked from OSchip/llvm-project
Allow targets to custom legalize vector insertion and extraction.
llvm-svn: 217711
This commit is contained in:
parent
c249abba05
commit
e68ca8d4ba
|
@ -868,6 +868,10 @@ void DAGTypeLegalizer::SplitVecRes_INSERT_VECTOR_ELT(SDNode *N, SDValue &Lo,
|
|||
return;
|
||||
}
|
||||
|
||||
// See if the target wants to custom expand this node.
|
||||
if (CustomLowerNode(N, N->getValueType(0), true))
|
||||
return;
|
||||
|
||||
// Spill the vector to the stack.
|
||||
EVT VecVT = Vec.getValueType();
|
||||
EVT EltVT = VecVT.getVectorElementType();
|
||||
|
@ -1349,6 +1353,10 @@ SDValue DAGTypeLegalizer::SplitVecOp_EXTRACT_VECTOR_ELT(SDNode *N) {
|
|||
Idx.getValueType())), 0);
|
||||
}
|
||||
|
||||
// See if the target wants to custom expand this node.
|
||||
if (CustomLowerNode(N, N->getValueType(0), true))
|
||||
return SDValue();
|
||||
|
||||
// Store the vector to the stack.
|
||||
EVT EltVT = VecVT.getVectorElementType();
|
||||
SDLoc dl(N);
|
||||
|
|
Loading…
Reference in New Issue