mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
Use const reference instead of vector copying.
llvm-svn: 173497
This commit is contained in:
parent
4e9de7c89b
commit
4fa9ef00c4
@ -467,7 +467,8 @@ void ScheduleDAGMI::initRegPressure() {
|
||||
// Cache the list of excess pressure sets in this region. This will also track
|
||||
// the max pressure in the scheduled code for these sets.
|
||||
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) {
|
||||
unsigned Limit = TRI->getRegPressureSetLimit(i);
|
||||
DEBUG(dbgs() << TRI->getRegPressureSetName(i)
|
||||
|
Loading…
Reference in New Issue
Block a user