[SIMachineScheduler] Fixed ''then' statement is equivalent to the 'else' statement...
authorDávid Bolvanský <david.bolvansky@gmail.com>
Sun, 3 Nov 2019 19:40:53 +0000 (20:40 +0100)
committerDávid Bolvanský <david.bolvansky@gmail.com>
Sun, 3 Nov 2019 19:40:53 +0000 (20:40 +0100)
llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp

index c072ba6..bd3a633 100644 (file)
@@ -609,13 +609,8 @@ void SIScheduleBlock::printDebug(bool full) {
   }
 
   dbgs() << "\nInstructions:\n";
-  if (!Scheduled) {
-    for (const SUnit* SU : SUnits)
+  for (const SUnit* SU : SUnits)
       DAG->dumpNode(*SU);
-  } else {
-    for (const SUnit* SU : SUnits)
-      DAG->dumpNode(*SU);
-  }
 
   dbgs() << "///////////////////////\n";
 }