1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

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 04558ecc90
commit 521b8b5ef3

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