diff options
-rw-r--r-- | lib/CodeGen/InstrSched/InstrScheduling.cpp | 1 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/InstrScheduling.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index 7f29b8c70b..f10bf3c412 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) diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index 7f29b8c70b..f10bf3c412 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/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) |