[llvm] r253097 - MachineScheduler: Print initial pressure in debug dump

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 14:30:31 PST 2015


Author: matze
Date: Fri Nov 13 16:30:31 2015
New Revision: 253097

URL: http://llvm.org/viewvc/llvm-project?rev=253097&view=rev
Log:
MachineScheduler: Print initial pressure in debug dump

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=253097&r1=253096&r2=253097&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Fri Nov 13 16:30:31 2015
@@ -910,6 +910,13 @@ void ScheduleDAGMILive::initRegPressure(
     updatePressureDiffs(LiveUses);
   }
 
+  DEBUG(
+    dbgs() << "Top Pressure:\n";
+    dumpRegSetPressure(TopRPTracker.getRegSetPressureAtPos(), TRI);
+    dbgs() << "Bottom Pressure:\n";
+    dumpRegSetPressure(BotRPTracker.getRegSetPressureAtPos(), TRI);
+  );
+
   assert(BotRPTracker.getPos() == RegionEnd && "Can't find the region bottom");
 
   // Cache the list of excess pressure sets in this region. This will also track




More information about the llvm-commits mailing list