MachineScheduler: Improve debug output for "only one node in readyset"
authorMatthias Braun <matze@braunis.de>
Fri, 13 Nov 2015 22:30:29 +0000 (22:30 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 13 Nov 2015 22:30:29 +0000 (22:30 +0000)
When there is only 1 node left in the ready queue and it is picked call
the reason "ONLY1" instead of "NOCAND".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253096 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index 5b83df9cb7ffe3e625244cf1d5540c0fdd3a12ec..5a31d675317c0476f80a6e5c6cbf15cdb1f1a915 100644 (file)
@@ -2800,12 +2800,12 @@ SUnit *GenericScheduler::pickNodeBidirectional(bool &IsTopNode) {
   // efficient, but also provides the best heuristics for CriticalPSets.
   if (SUnit *SU = Bot.pickOnlyChoice()) {
     IsTopNode = false;
   // efficient, but also provides the best heuristics for CriticalPSets.
   if (SUnit *SU = Bot.pickOnlyChoice()) {
     IsTopNode = false;
-    DEBUG(dbgs() << "Pick Bot NOCAND\n");
+    DEBUG(dbgs() << "Pick Bot ONLY1\n");
     return SU;
   }
   if (SUnit *SU = Top.pickOnlyChoice()) {
     IsTopNode = true;
     return SU;
   }
   if (SUnit *SU = Top.pickOnlyChoice()) {
     IsTopNode = true;
-    DEBUG(dbgs() << "Pick Top NOCAND\n");
+    DEBUG(dbgs() << "Pick Top ONLY1\n");
     return SU;
   }
   CandPolicy NoPolicy;
     return SU;
   }
   CandPolicy NoPolicy;