mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Do not drop transferred last uses on the floor.
Use handleLastUserOverflow(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3cfc1d22b2
commit
f5e28d9dfe
@ -157,6 +157,7 @@ public:
|
||||
recordAvailableAnalysis(IP);
|
||||
} else {
|
||||
P->assignPassManager(activeStack);
|
||||
activeStack.handleLastUserOverflow();
|
||||
}
|
||||
|
||||
}
|
||||
@ -255,6 +256,7 @@ public:
|
||||
recordAvailableAnalysis(IP);
|
||||
} else {
|
||||
P->assignPassManager(activeStack);
|
||||
activeStack.handleLastUserOverflow();
|
||||
}
|
||||
|
||||
}
|
||||
@ -1220,6 +1222,7 @@ void PMStack::handleLastUserOverflow() {
|
||||
if (!TLU.empty()) {
|
||||
Pass *P = dynamic_cast<Pass *>(Parent);
|
||||
TPM->setLastUser(TLU, P);
|
||||
TLU.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user