Oops. Last second clean up messed things up.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 12 Feb 2009 09:52:13 +0000 (09:52 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 12 Feb 2009 09:52:13 +0000 (09:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

index 912e8ed7f7ca02469cd1f17f8f1db2698f1b3626..e461666f61cb79789b1a0496d8c0e9ad86789deb 100644 (file)
@@ -1074,9 +1074,10 @@ static unsigned closestSucc(const SUnit *SU) {
 static unsigned calcMaxScratches(const SUnit *SU) {
   unsigned Scratches = 0;
   for (SUnit::const_pred_iterator I = SU->Preds.begin(), E = SU->Preds.end();
-       I != E; ++I)
+       I != E; ++I) {
     if (I->isCtrl()) continue;  // ignore chain preds
-      Scratches++;
+    Scratches++;
+  }
   return Scratches;
 }