Oops. Last second clean up messed things up.

llvm-svn: 64373
This commit is contained in:
Evan Cheng 2009-02-12 09:52:13 +00:00
parent 8b39b545a9
commit b570499c25
1 changed files with 3 additions and 2 deletions

View 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;
}