mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1539,7 +1539,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &Func) {
|
||||
// transformations that may either eliminate the tied operands or
|
||||
// improve the opportunities for coalescing away the register copy.
|
||||
if (TiedOperands.size() == 1) {
|
||||
SmallVector<std::pair<unsigned, unsigned>, 4> &TiedPairs
|
||||
SmallVectorImpl<std::pair<unsigned, unsigned> > &TiedPairs
|
||||
= TiedOperands.begin()->second;
|
||||
if (TiedPairs.size() == 1) {
|
||||
unsigned SrcIdx = TiedPairs[0].first;
|
||||
|
Reference in New Issue
Block a user