mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user