mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Reduce the size of the Parts vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0bb68b982
commit
91ee5454ae
@ -4014,7 +4014,7 @@ SDValue RegsForValue::getCopyFromRegs(SelectionDAG &DAG,
|
||||
unsigned NumRegs = TLI->getNumRegisters(ValueVT);
|
||||
MVT RegisterVT = RegVTs[Value];
|
||||
|
||||
Parts.resize(Part + NumRegs);
|
||||
Parts.resize(NumRegs);
|
||||
for (unsigned i = 0; i != NumRegs; ++i) {
|
||||
SDValue P;
|
||||
if (Flag == 0)
|
||||
@ -4067,12 +4067,13 @@ SDValue RegsForValue::getCopyFromRegs(SelectionDAG &DAG,
|
||||
}
|
||||
}
|
||||
|
||||
Parts[Part+i] = P;
|
||||
Parts[i] = P;
|
||||
}
|
||||
|
||||
Values[Value] = getCopyFromParts(DAG, &Parts[Part], NumRegs, RegisterVT,
|
||||
Values[Value] = getCopyFromParts(DAG, Parts.begin(), NumRegs, RegisterVT,
|
||||
ValueVT);
|
||||
Part += NumRegs;
|
||||
Parts.clear();
|
||||
}
|
||||
|
||||
return DAG.getMergeValues(DAG.getVTList(&ValueVTs[0], ValueVTs.size()),
|
||||
|
Loading…
Reference in New Issue
Block a user