mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +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:
@@ -360,7 +360,7 @@ protected:
|
|||||||
|
|
||||||
void initRegPressure();
|
void initRegPressure();
|
||||||
|
|
||||||
void updateScheduledPressure(std::vector<unsigned> NewMaxPressure);
|
void updateScheduledPressure(const std::vector<unsigned> &NewMaxPressure);
|
||||||
|
|
||||||
void moveInstruction(MachineInstr *MI, MachineBasicBlock::iterator InsertPos);
|
void moveInstruction(MachineInstr *MI, MachineBasicBlock::iterator InsertPos);
|
||||||
bool checkSchedLimit();
|
bool checkSchedLimit();
|
||||||
|
@@ -487,7 +487,7 @@ void ScheduleDAGMI::initRegPressure() {
|
|||||||
// FIXME: When the pressure tracker deals in pressure differences then we won't
|
// FIXME: When the pressure tracker deals in pressure differences then we won't
|
||||||
// iterate over all RegionCriticalPSets[i].
|
// iterate over all RegionCriticalPSets[i].
|
||||||
void ScheduleDAGMI::
|
void ScheduleDAGMI::
|
||||||
updateScheduledPressure(std::vector<unsigned> NewMaxPressure) {
|
updateScheduledPressure(const std::vector<unsigned> &NewMaxPressure) {
|
||||||
for (unsigned i = 0, e = RegionCriticalPSets.size(); i < e; ++i) {
|
for (unsigned i = 0, e = RegionCriticalPSets.size(); i < e; ++i) {
|
||||||
unsigned ID = RegionCriticalPSets[i].PSetID;
|
unsigned ID = RegionCriticalPSets[i].PSetID;
|
||||||
int &MaxUnits = RegionCriticalPSets[i].UnitIncrease;
|
int &MaxUnits = RegionCriticalPSets[i].UnitIncrease;
|
||||||
|
Reference in New Issue
Block a user