diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-02-12 09:52:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-02-12 09:52:13 +0000 |
commit | f11f9578e0e34d42ba884472968c5a649b9e3918 (patch) | |
tree | 77aa2ebae4c015ad9ec364f95d0b080723516ae6 /lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | |
parent | 1eff330f5672b44a6aa94f36c0803e7002970193 (diff) | |
download | external_llvm-f11f9578e0e34d42ba884472968c5a649b9e3918.zip external_llvm-f11f9578e0e34d42ba884472968c5a649b9e3918.tar.gz external_llvm-f11f9578e0e34d42ba884472968c5a649b9e3918.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 912e8ed..e461666 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; } |