mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Adjust the sizes for a few SmallVectors to reflect their usage.
llvm-svn: 64381
This commit is contained in:
parent
4e2ed3e5e7
commit
3c296f6bd0
@ -518,7 +518,7 @@ MachineInstr *RABigBlock::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI
|
||||
assignVirtToPhysReg(VirtReg, PhysReg);
|
||||
} else { // no free registers available.
|
||||
// try to fold the spill into the instruction
|
||||
SmallVector<unsigned, 2> Ops;
|
||||
SmallVector<unsigned, 1> Ops;
|
||||
Ops.push_back(OpNum);
|
||||
if(MachineInstr* FMI = TII->foldMemoryOperand(*MF, MI, Ops, FrameIndex)) {
|
||||
++NumFolded;
|
||||
|
@ -1053,7 +1053,7 @@ bool LocalSpiller::PrepForUnfoldOpti(MachineBasicBlock &MBB,
|
||||
NewMIs.clear();
|
||||
int Idx = NewMI->findRegisterUseOperandIdx(VirtReg, false);
|
||||
assert(Idx != -1);
|
||||
SmallVector<unsigned, 2> Ops;
|
||||
SmallVector<unsigned, 1> Ops;
|
||||
Ops.push_back(Idx);
|
||||
MachineInstr *FoldedMI = TII->foldMemoryOperand(MF, NewMI, Ops, SS);
|
||||
if (FoldedMI) {
|
||||
@ -1124,7 +1124,7 @@ bool LocalSpiller::CommuteToFoldReload(MachineBasicBlock &MBB,
|
||||
MachineInstr *CommutedMI = TII->commuteInstruction(DefMI, true);
|
||||
if (!CommutedMI)
|
||||
return false;
|
||||
SmallVector<unsigned, 2> Ops;
|
||||
SmallVector<unsigned, 1> Ops;
|
||||
Ops.push_back(NewDstIdx);
|
||||
MachineInstr *FoldedMI = TII->foldMemoryOperand(MF, CommutedMI, Ops, SS);
|
||||
// Not needed since foldMemoryOperand returns new MI.
|
||||
|
Loading…
x
Reference in New Issue
Block a user