aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit9bbf99de5faa3565d4b6cf22e50d07437f0d2328 (patch)
treefd9bab6694c500514e964e2977c3422e0043f3cd /lib/CodeGen
parent8929cc230a2eec305f2c8f64ee0cb57c0cb3cc48 (diff)
downloadexternal_llvm-9bbf99de5faa3565d4b6cf22e50d07437f0d2328.zip
external_llvm-9bbf99de5faa3565d4b6cf22e50d07437f0d2328.tar.gz
external_llvm-9bbf99de5faa3565d4b6cf22e50d07437f0d2328.tar.bz2
No need to reserve space, erasing does not change the size of the container.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/InstrSched/InstrScheduling.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp
index 7f29b8c..f10bf3c 100644
--- a/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/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)