From: Matthias Braun Date: Fri, 13 Nov 2015 22:30:31 +0000 (+0000) Subject: MachineScheduler: Print initial pressure in debug dump X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f724d184fbad1f71b4f01f600a875c1b79d43738;p=oota-llvm.git MachineScheduler: Print initial pressure in debug dump git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253097 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index 5a31d675317..a13dab3fe78 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/lib/CodeGen/MachineScheduler.cpp @@ -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