Remove dead code.
[oota-llvm.git] / lib / CodeGen / ScheduleDAGInstrs.cpp
index 3d4e70509068566536051f5a3e42604bd9ea07ff..2363df429e36f52d561e82f53bd1f8c3a765f269 100644 (file)
@@ -670,16 +670,11 @@ MachineBasicBlock *ScheduleDAGInstrs::EmitSchedule() {
 
   // Then re-insert them according to the given schedule.
   for (unsigned i = 0, e = Sequence.size(); i != e; i++) {
-    SUnit *SU = Sequence[i];
-    if (!SU) {
+    if (SUnit *SU = Sequence[i])
+      BB->insert(InsertPos, SU->getInstr());
+    else
       // Null SUnit* is a noop.
       EmitNoop();
-      continue;
-    }
-
-    BB->insert(InsertPos, SU->getInstr());
-    for (unsigned i = 0, e = SU->DbgInstrList.size() ; i < e ; ++i)
-      BB->insert(InsertPos, SU->DbgInstrList[i]);
   }
 
   // Update the Begin iterator, as the first instruction in the block