mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-09 00:51:41 +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) {
|
static unsigned calcMaxScratches(const SUnit *SU) {
|
||||||
unsigned Scratches = 0;
|
unsigned Scratches = 0;
|
||||||
for (SUnit::const_pred_iterator I = SU->Preds.begin(), E = SU->Preds.end();
|
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
|
if (I->isCtrl()) continue; // ignore chain preds
|
||||||
Scratches++;
|
Scratches++;
|
||||||
|
}
|
||||||
return Scratches;
|
return Scratches;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user