aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-12 09:52:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-12 09:52:13 +0000
commitf2b14715d11e52adbb17a5860d1ce42f82f85a0c (patch)
tree77aa2ebae4c015ad9ec364f95d0b080723516ae6 /lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
parent6d209c413e3be5640f14af136e8b112e85c79cab (diff)
downloadexternal_llvm-f2b14715d11e52adbb17a5860d1ce42f82f85a0c.zip
external_llvm-f2b14715d11e52adbb17a5860d1ce42f82f85a0c.tar.gz
external_llvm-f2b14715d11e52adbb17a5860d1ce42f82f85a0c.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.cpp5
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;
}