summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-09 18:01:21 +0000
committerChris Lattner <sabre@nondot.org>2002-04-09 18:01:21 +0000
commit99ac15d154e4630fbba3c37dbbe6f5e2fcf07682 (patch)
tree5926b346fc6189b4a25cedb6aa84eecbaff2b28e /llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
parent46df9aec96edce750cb2d653ea13b45fc791fdda (diff)
downloadbcm5719-llvm-99ac15d154e4630fbba3c37dbbe6f5e2fcf07682.tar.gz
bcm5719-llvm-99ac15d154e4630fbba3c37dbbe6f5e2fcf07682.zip
No need to reserve space, erasing does not change the size of the container.
llvm-svn: 2201
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp')
-rw-r--r--llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
index 7f29b8c70b1..f10bf3c4124 100644
--- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
@@ -661,7 +661,6 @@ RecordSchedule(const BasicBlock* bb, const SchedulingManager& S)
// Erase all except the dummy PHI instructions from mvec, and
// pre-allocate create space for the ones we will put back in.
mvec.erase(I, mvec.end());
- mvec.reserve(mvec.size() + S.isched.getNumInstructions());
InstrSchedule::const_iterator NIend = S.isched.end();
for (InstrSchedule::const_iterator NI = S.isched.begin(); NI != NIend; ++NI)
OpenPOWER on IntegriCloud