Use array_lengthof to compute the number of iterations of a loop.
[oota-llvm.git] / lib / CodeGen / ScheduleDAG.cpp
index 21375b286c99a0db15ec9d6a3c6f845f94a17eba..1e9b5c89f1724f9ebab3aed9b6dd4c6305332c3b 100644 (file)
@@ -26,7 +26,7 @@
 using namespace llvm;
 
 #ifndef NDEBUG
-cl::opt<bool> StressSchedOpt(
+static cl::opt<bool> StressSchedOpt(
   "stress-sched", cl::Hidden, cl::init(false),
   cl::desc("Stress test instruction scheduling"));
 #endif
@@ -140,6 +140,7 @@ void SUnit::removePred(const SDep &D) {
           break;
         }
       assert(FoundSucc && "Mismatching preds / succs lists!");
+      (void)FoundSucc;
       Preds.erase(I);
       // Update the bookkeeping.
       if (P.getKind() == SDep::Data) {