mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[X86] Early out of combineInsertSubvector for mask vectors.
The combines here shouldn't be done for mask vectors, but it wasn't clear anything was preventing that. llvm-svn: 310786
This commit is contained in:
parent
0174550128
commit
7a9745b858
@ -35504,13 +35504,18 @@ static SDValue combineInsertSubvector(SDNode *N, SelectionDAG &DAG,
|
||||
if (DCI.isBeforeLegalizeOps())
|
||||
return SDValue();
|
||||
|
||||
MVT OpVT = N->getSimpleValueType(0);
|
||||
|
||||
// Early out for mask vectors.
|
||||
if (OpVT.getVectorElementType() == MVT::i1)
|
||||
return SDValue();
|
||||
|
||||
SDLoc dl(N);
|
||||
SDValue Vec = N->getOperand(0);
|
||||
SDValue SubVec = N->getOperand(1);
|
||||
SDValue Idx = N->getOperand(2);
|
||||
|
||||
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
|
||||
MVT OpVT = N->getSimpleValueType(0);
|
||||
MVT SubVecVT = SubVec.getSimpleValueType();
|
||||
|
||||
// If this is an insert of an extract, combine to a shuffle. Don't do this
|
||||
|
Loading…
Reference in New Issue
Block a user