mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
Use const reference instead of vector object when passing an argument to
updateScheduledPressure method. llvm-svn: 175362
This commit is contained in:
parent
a6420f953a
commit
a2269e01cd
@ -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…
x
Reference in New Issue
Block a user