mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 14:20:33 +00:00
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:
parent
3e44559d01
commit
1b17033bc7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user