mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-13 16:03:55 +00:00
Top level pass manager keeps track of other managers, so this can be
removed now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd520b187a
commit
5b640e7edc
@ -693,14 +693,7 @@ Pass *PMDataManager::findAnalysisPass(AnalysisID AID, bool SearchParent) {
|
||||
if (SearchParent)
|
||||
return TPM->findAnalysisPass(AID);
|
||||
|
||||
// FIXME : This is expensive and requires. Need to check only managers not all passes.
|
||||
// One solution is to collect managers in advance at TPM level.
|
||||
Pass *P = NULL;
|
||||
for(std::vector<Pass *>::iterator I = passVectorBegin(),
|
||||
E = passVectorEnd(); P == NULL && I!= E; ++I ) {
|
||||
P = (*I)->getResolver()->getAnalysisToUpdate(AID, false /* Do not search parents again */);
|
||||
}
|
||||
return P;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user