Use const reference instead of vector object when passing an argument to

updateScheduledPressure method.

llvm-svn: 175362
This commit is contained in:
Jakub Staszak 2013-02-16 15:47:26 +00:00
parent a6420f953a
commit a2269e01cd
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ protected:
void initRegPressure();
void updateScheduledPressure(std::vector<unsigned> NewMaxPressure);
void updateScheduledPressure(const std::vector<unsigned> &NewMaxPressure);
void moveInstruction(MachineInstr *MI, MachineBasicBlock::iterator InsertPos);
bool checkSchedLimit();

View File

@ -487,7 +487,7 @@ void ScheduleDAGMI::initRegPressure() {
// FIXME: When the pressure tracker deals in pressure differences then we won't
// iterate over all RegionCriticalPSets[i].
void ScheduleDAGMI::
updateScheduledPressure(std::vector<unsigned> NewMaxPressure) {
updateScheduledPressure(const std::vector<unsigned> &NewMaxPressure) {
for (unsigned i = 0, e = RegionCriticalPSets.size(); i < e; ++i) {
unsigned ID = RegionCriticalPSets[i].PSetID;
int &MaxUnits = RegionCriticalPSets[i].UnitIncrease;