mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
CodeGenSchedule: Use resize instead of copying a vector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f155d7d2b
commit
0efc78257b
@ -1173,8 +1173,8 @@ pushVariant(const TransVariant &VInfo, bool IsRead) {
|
||||
// Make N-1 copies of this transition's last sequence.
|
||||
for (unsigned i = 1, e = SelectedRWs.size(); i != e; ++i) {
|
||||
// Create a temporary copy the vector could reallocate.
|
||||
SmallVector<unsigned, 4> Tmp = RWSequences[OperIdx];
|
||||
RWSequences.push_back(Tmp);
|
||||
RWSequences.reserve(RWSequences.size() + 1);
|
||||
RWSequences.push_back(RWSequences[OperIdx]);
|
||||
}
|
||||
// Push each of the N elements of the SelectedRWs onto a copy of the last
|
||||
// sequence (split the current operand into N operands).
|
||||
|
Loading…
Reference in New Issue
Block a user