mi-sched: DEBUG cleanup, call tracePick for unidirectional scheduling.
authorAndrew Trick <atrick@apple.com>
Wed, 4 Sep 2013 21:00:16 +0000 (21:00 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 4 Sep 2013 21:00:16 +0000 (21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189993 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index ed5de5c5ffceb706e7db6288f89e4cc4172a8978..6b2132301611501024ecff31a4c0cf5e10c64c73 100644 (file)
@@ -2681,6 +2681,7 @@ SUnit *ConvergingScheduler::pickNode(bool &IsTopNode) {
         SchedCandidate TopCand(NoPolicy);
         pickNodeFromQueue(Top, DAG->getTopRPTracker(), TopCand);
         assert(TopCand.Reason != NoCand && "failed to find a candidate");
+        tracePick(TopCand, true);
         SU = TopCand.SU;
       }
       IsTopNode = true;
@@ -2692,6 +2693,7 @@ SUnit *ConvergingScheduler::pickNode(bool &IsTopNode) {
         SchedCandidate BotCand(NoPolicy);
         pickNodeFromQueue(Bot, DAG->getBotRPTracker(), BotCand);
         assert(BotCand.Reason != NoCand && "failed to find a candidate");
+        tracePick(BotCand, false);
         SU = BotCand.SU;
       }
       IsTopNode = false;