mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 08:54:08 +00:00
Fix PR1158
Do not insert Analysis pass, if it is already available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8c6928781
commit
90f1ad7bf4
@ -377,6 +377,11 @@ void PMTopLevelManager::schedulePass(Pass *P) {
|
||||
// TODO : Allocate function manager for this pass, other wise required set
|
||||
// may be inserted into previous function manager
|
||||
|
||||
// If this Analysis is already requested by one of the previous pass
|
||||
// and it is still available then do not insert new pass in the queue again.
|
||||
if (findAnalysisPass(P->getPassInfo()))
|
||||
return;
|
||||
|
||||
AnalysisUsage AnUsage;
|
||||
P->getAnalysisUsage(AnUsage);
|
||||
const std::vector<AnalysisID> &RequiredSet = AnUsage.getRequiredSet();
|
||||
|
Loading…
x
Reference in New Issue
Block a user