[X86] Use ISD::CONCAT_VECTORS when splitting 256-bit loads in combineLoad.
llvm-svn: 321537
This commit is contained in:
parent
4b311da3a4
commit
c0b6cb1e47
|
|
@ -34057,9 +34057,7 @@ static SDValue combineLoad(SDNode *N, SelectionDAG &DAG,
|
||||||
Load1.getValue(1),
|
Load1.getValue(1),
|
||||||
Load2.getValue(1));
|
Load2.getValue(1));
|
||||||
|
|
||||||
SDValue NewVec = DAG.getUNDEF(RegVT);
|
SDValue NewVec = DAG.getNode(ISD::CONCAT_VECTORS, dl, RegVT, Load1, Load2);
|
||||||
NewVec = insert128BitVector(NewVec, Load1, 0, DAG, dl);
|
|
||||||
NewVec = insert128BitVector(NewVec, Load2, NumElems / 2, DAG, dl);
|
|
||||||
return DCI.CombineTo(N, NewVec, TF, true);
|
return DCI.CombineTo(N, NewVec, TF, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue