[llvm-commits] [llvm] r173497 - /llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Jakub Staszak
kubastaszak at gmail.com
Fri Jan 25 13:44:27 PST 2013
Author: kuba
Date: Fri Jan 25 15:44:27 2013
New Revision: 173497
URL: http://llvm.org/viewvc/llvm-project?rev=173497&view=rev
Log:
Use const reference instead of vector copying.
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=173497&r1=173496&r2=173497&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Fri Jan 25 15:44:27 2013
@@ -467,7 +467,8 @@
// 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)
More information about the llvm-commits
mailing list