mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
Use const reference instead of vector copying.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e1f95db480
commit
b74564a15a
@ -467,7 +467,8 @@ void ScheduleDAGMI::initRegPressure() {
|
|||||||
// Cache the list of excess pressure sets in this region. This will also track
|
// Cache the list of excess pressure sets in this region. This will also track
|
||||||
// the max pressure in the scheduled code for these sets.
|
// the max pressure in the scheduled code for these sets.
|
||||||
RegionCriticalPSets.clear();
|
RegionCriticalPSets.clear();
|
||||||
std::vector<unsigned> RegionPressure = RPTracker.getPressure().MaxSetPressure;
|
const std::vector<unsigned> &RegionPressure =
|
||||||
|
RPTracker.getPressure().MaxSetPressure;
|
||||||
for (unsigned i = 0, e = RegionPressure.size(); i < e; ++i) {
|
for (unsigned i = 0, e = RegionPressure.size(); i < e; ++i) {
|
||||||
unsigned Limit = TRI->getRegPressureSetLimit(i);
|
unsigned Limit = TRI->getRegPressureSetLimit(i);
|
||||||
DEBUG(dbgs() << TRI->getRegPressureSetName(i)
|
DEBUG(dbgs() << TRI->getRegPressureSetName(i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user