Resolve part of a fixme and add a new one.
[oota-llvm.git] / lib / CodeGen / ScheduleDAGInstrs.h
index 6e672f4b727281ac925af9de8da692a98f470c37..666bdf548c718c4cdb788e92f682691c31972dfd 100644 (file)
@@ -48,7 +48,8 @@ namespace llvm {
     /// VisitLoop - Clear out any previous state and analyze the given loop.
     ///
     void VisitLoop(const MachineLoop *Loop) {
-      Deps.clear();
+      assert(Deps.empty() && "stale loop dependencies");
+
       MachineBasicBlock *Header = Loop->getHeader();
       SmallSet<unsigned, 8> LoopLiveIns;
       for (MachineBasicBlock::livein_iterator LI = Header->livein_begin(),