summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-12 17:29:01 +0000
committerDan Gohman <gohman@apple.com>2009-02-12 17:29:01 +0000
commite366c29fa01640cdecd6bcd775dc3067fe6e4d30 (patch)
tree25c2ff34932e479f2bb926b7ee5ce11f3b20a45c /llvm/lib/CodeGen/VirtRegMap.cpp
parent648bf78333bac59a3e5106a87324952b9cfa70cb (diff)
downloadbcm5719-llvm-e366c29fa01640cdecd6bcd775dc3067fe6e4d30.tar.gz
bcm5719-llvm-e366c29fa01640cdecd6bcd775dc3067fe6e4d30.zip
Adjust the sizes for a few SmallVectors to reflect their usage.
llvm-svn: 64381
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 84c48c652cc..f288dcc87cf 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -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.
OpenPOWER on IntegriCloud