mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 09:37:20 +00:00
Allow targets to custom legalize vector insertion and extraction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a240fc5cb9
commit
00edf1f086
@ -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…
x
Reference in New Issue
Block a user