Skip to content

Commit

Permalink
Use const reference instead of vector object when passing an argument to
Browse files Browse the repository at this point in the history
updateScheduledPressure method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175362 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Jakub Staszak committed Feb 16, 2013
1 parent c213366 commit b717a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/llvm/CodeGen/MachineScheduler.h
Expand Up @@ -360,7 +360,7 @@ class ScheduleDAGMI : public ScheduleDAGInstrs {

void initRegPressure();

void updateScheduledPressure(std::vector<unsigned> NewMaxPressure);
void updateScheduledPressure(const std::vector<unsigned> &NewMaxPressure);

void moveInstruction(MachineInstr *MI, MachineBasicBlock::iterator InsertPos);
bool checkSchedLimit();
Expand Down
2 changes: 1 addition & 1 deletion lib/CodeGen/MachineScheduler.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b717a50

Please sign in to comment.