mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 07:33:18 +00:00
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
This commit is contained in:
parent
6d209c413e
commit
f2b14715d1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user