mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Pass manager may require certain analysis. In such cases, initially
pass manager is last user. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b8c4b35e3
commit
8df87095fc
@ -600,10 +600,9 @@ void PMDataManager::add(Pass *P,
|
||||
// Set P as P's last user until someone starts using P.
|
||||
// However, if P is a Pass Manager then it does not need
|
||||
// to record its last user.
|
||||
if (!dynamic_cast<PMDataManager *>(P)) {
|
||||
if (!dynamic_cast<PMDataManager *>(P))
|
||||
LastUses.push_back(P);
|
||||
TPM->setLastUser(LastUses, P);
|
||||
}
|
||||
TPM->setLastUser(LastUses, P);
|
||||
|
||||
// Take a note of analysis required and made available by this pass.
|
||||
// Remove the analysis not preserved by this pass
|
||||
|
Loading…
Reference in New Issue
Block a user