[llvm] r180191 - MI Sched: regpressure tracing.
Andrew Trick
atrick at apple.com
Wed Apr 24 08:54:36 PDT 2013
Author: atrick
Date: Wed Apr 24 10:54:36 2013
New Revision: 180191
URL: http://llvm.org/viewvc/llvm-project?rev=180191&view=rev
Log:
MI Sched: regpressure tracing.
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=180191&r1=180190&r2=180191&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Wed Apr 24 10:54:36 2013
@@ -507,6 +507,14 @@ updateScheduledPressure(const std::vecto
if ((int)NewMaxPressure[ID] > MaxUnits)
MaxUnits = NewMaxPressure[ID];
}
+ DEBUG(
+ for (unsigned i = 0, e = NewMaxPressure.size(); i < e; ++i) {
+ unsigned Limit = TRI->getRegPressureSetLimit(i);
+ if (NewMaxPressure[i] > Limit ) {
+ dbgs() << " " << TRI->getRegPressureSetName(i) << ": "
+ << NewMaxPressure[i] << " > " << Limit << "\n";
+ }
+ });
}
/// schedule - Called back from MachineScheduler::runOnMachineFunction
More information about the llvm-commits
mailing list