]> granicus.if.org Git - llvm/commitdiff
[AMDGPU] Fix GCNSchedStrategy.cpp debug output
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Mon, 6 Feb 2017 23:16:51 +0000 (23:16 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Mon, 6 Feb 2017 23:16:51 +0000 (23:16 +0000)
There is typo in the debug output: top and bottom candidates are switched.

Differential Revision: https://reviews.llvm.org/D29608

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

lib/Target/AMDGPU/GCNSchedStrategy.cpp

index cc0cd8b29843375a6b82eca3605321b361fd59fc..90d0778a56bca32bc3b0ab3c5a8a965cf5654681 100644 (file)
@@ -225,9 +225,9 @@ SUnit *GCNMaxOccupancySchedStrategy::pickNodeBidirectional(bool &IsTopNode) {
   // Pick best from BotCand and TopCand.
   DEBUG(
     dbgs() << "Top Cand: ";
-    traceCandidate(BotCand);
-    dbgs() << "Bot Cand: ";
     traceCandidate(TopCand);
+    dbgs() << "Bot Cand: ";
+    traceCandidate(BotCand);
   );
   SchedCandidate Cand;
   if (TopCand.Reason == BotCand.Reason) {