[llvm] r294257 - [AMDGPU] Fix GCNSchedStrategy.cpp debug output

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 15:16:51 PST 2017


Author: rampitec
Date: Mon Feb  6 17:16:51 2017
New Revision: 294257

URL: http://llvm.org/viewvc/llvm-project?rev=294257&view=rev
Log:
[AMDGPU] Fix GCNSchedStrategy.cpp debug output

There is typo in the debug output: top and bottom candidates are switched.

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

Modified:
    llvm/trunk/lib/Target/AMDGPU/GCNSchedStrategy.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/GCNSchedStrategy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/GCNSchedStrategy.cpp?rev=294257&r1=294256&r2=294257&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/GCNSchedStrategy.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/GCNSchedStrategy.cpp Mon Feb  6 17:16:51 2017
@@ -225,9 +225,9 @@ SUnit *GCNMaxOccupancySchedStrategy::pic
   // 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) {




More information about the llvm-commits mailing list