mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[X86] Remove an unnecessary SmallVector from LowerBUILD_VECTOR.
I think this may have existed to convert from SDUse to SDValue, but it doesn't look like its needed now. llvm-svn: 313311
This commit is contained in:
parent
43e732c065
commit
3bcc062cdc
@ -7814,15 +7814,13 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
|
||||
// For AVX-length vectors, build the individual 128-bit pieces and use
|
||||
// shuffles to put them in place.
|
||||
if (VT.is256BitVector() || VT.is512BitVector()) {
|
||||
SmallVector<SDValue, 64> Ops(Op->op_begin(), Op->op_begin() + NumElems);
|
||||
|
||||
EVT HVT = EVT::getVectorVT(*DAG.getContext(), ExtVT, NumElems/2);
|
||||
|
||||
// Build both the lower and upper subvector.
|
||||
SDValue Lower =
|
||||
DAG.getBuildVector(HVT, dl, makeArrayRef(&Ops[0], NumElems / 2));
|
||||
DAG.getBuildVector(HVT, dl, Op->ops().slice(0, NumElems / 2));
|
||||
SDValue Upper = DAG.getBuildVector(
|
||||
HVT, dl, makeArrayRef(&Ops[NumElems / 2], NumElems / 2));
|
||||
HVT, dl, Op->ops().slice(NumElems / 2, NumElems /2));
|
||||
|
||||
// Recreate the wider vector with the lower and upper part.
|
||||
if (VT.is256BitVector())
|
||||
|
Loading…
Reference in New Issue
Block a user