From: Evan Cheng Date: Thu, 12 Feb 2009 09:52:13 +0000 (+0000) Subject: Oops. Last second clean up messed things up. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f2b14715d11e52adbb17a5860d1ce42f82f85a0c;p=oota-llvm.git Oops. Last second clean up messed things up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64373 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 912e8ed7f7c..e461666f61c 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -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; }