mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Initialize AnalysisImpls for ImmutablePass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -399,7 +399,9 @@ public:
|
|||||||
// top level manager. Set up analysis resolver to connect them.
|
// top level manager. Set up analysis resolver to connect them.
|
||||||
AnalysisResolver_New *AR = new AnalysisResolver_New(*this);
|
AnalysisResolver_New *AR = new AnalysisResolver_New(*this);
|
||||||
P->setResolver(AR);
|
P->setResolver(AR);
|
||||||
|
initializeAnalysisImpl(P);
|
||||||
addImmutablePass(IP);
|
addImmutablePass(IP);
|
||||||
|
recordAvailableAnalysis(IP);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
addPass(P);
|
addPass(P);
|
||||||
@ -504,7 +506,9 @@ public:
|
|||||||
// top level manager. Set up analysis resolver to connect them.
|
// top level manager. Set up analysis resolver to connect them.
|
||||||
AnalysisResolver_New *AR = new AnalysisResolver_New(*this);
|
AnalysisResolver_New *AR = new AnalysisResolver_New(*this);
|
||||||
P->setResolver(AR);
|
P->setResolver(AR);
|
||||||
|
initializeAnalysisImpl(P);
|
||||||
addImmutablePass(IP);
|
addImmutablePass(IP);
|
||||||
|
recordAvailableAnalysis(IP);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
addPass(P);
|
addPass(P);
|
||||||
@ -634,7 +638,6 @@ void PMDataManager::addPassToManager(Pass *P,
|
|||||||
|
|
||||||
// Take a note of analysis required and made available by this pass.
|
// Take a note of analysis required and made available by this pass.
|
||||||
// Remove the analysis not preserved by this pass
|
// Remove the analysis not preserved by this pass
|
||||||
initializeAnalysisImpl(P);
|
|
||||||
removeNotPreservedAnalysis(P);
|
removeNotPreservedAnalysis(P);
|
||||||
recordAvailableAnalysis(P);
|
recordAvailableAnalysis(P);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user