While initializing AvailableAnalysis info, make ImmutablePasses available

immediately.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2006-12-07 21:02:08 +00:00
parent 3e44559d01
commit 1b17033bc7

View File

@ -218,6 +218,12 @@ public:
void initializeAnalysisInfo() {
AvailableAnalysis.clear();
LastUser.clear();
// Include immutable passes into AvailableAnalysis vector.
std::vector<ImmutablePass *> &ImmutablePasses = TPM->getImmutablePasses();
for (std::vector<ImmutablePass *>::iterator I = ImmutablePasses.begin(),
E = ImmutablePasses.end(); I != E; ++I)
recordAvailableAnalysis(*I);
}
// All Required analyses should be available to the pass as it runs! Here