diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-09 18:01:21 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-09 18:01:21 +0000 |
| commit | 99ac15d154e4630fbba3c37dbbe6f5e2fcf07682 (patch) | |
| tree | 5926b346fc6189b4a25cedb6aa84eecbaff2b28e /llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp | |
| parent | 46df9aec96edce750cb2d653ea13b45fc791fdda (diff) | |
| download | bcm5719-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.cpp | 1 |
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) |

