mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 07:05:03 +00:00
Use const reference instead of vector object when passing an argument to
updateScheduledPressure method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c213366063
commit
b717a50847
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user