mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Fix thinko.
While searching for a analysis in a pass manager, do not search it into pass manager's manager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b8d015066
commit
7e601a70fc
@ -260,6 +260,9 @@ private:
|
|||||||
unsigned Depth;
|
unsigned Depth;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// BasicBlockPassManager_New
|
||||||
|
//
|
||||||
/// BasicBlockPassManager_New manages BasicBlockPass. It batches all the
|
/// BasicBlockPassManager_New manages BasicBlockPass. It batches all the
|
||||||
/// pass together and sequence them to process one basic block before
|
/// pass together and sequence them to process one basic block before
|
||||||
/// processing next basic block.
|
/// processing next basic block.
|
||||||
@ -288,6 +291,9 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// FunctionPassManagerImpl_New
|
||||||
|
//
|
||||||
/// FunctionPassManagerImpl_New manages FunctionPasses and BasicBlockPassManagers.
|
/// FunctionPassManagerImpl_New manages FunctionPasses and BasicBlockPassManagers.
|
||||||
/// It batches all function passes and basic block pass managers together and
|
/// It batches all function passes and basic block pass managers together and
|
||||||
/// sequence them to process one function at a time before processing next
|
/// sequence them to process one function at a time before processing next
|
||||||
@ -356,6 +362,9 @@ private:
|
|||||||
BasicBlockPassManager_New *activeBBPassManager;
|
BasicBlockPassManager_New *activeBBPassManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// ModulePassManager_New
|
||||||
|
//
|
||||||
/// ModulePassManager_New manages ModulePasses and function pass managers.
|
/// ModulePassManager_New manages ModulePasses and function pass managers.
|
||||||
/// It batches all Module passes passes and function pass managers together and
|
/// It batches all Module passes passes and function pass managers together and
|
||||||
/// sequence them to process one module.
|
/// sequence them to process one module.
|
||||||
@ -384,7 +393,10 @@ private:
|
|||||||
FunctionPassManagerImpl_New *activeFunctionPassManager;
|
FunctionPassManagerImpl_New *activeFunctionPassManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// PassManager_New manages ModulePassManagers
|
//===----------------------------------------------------------------------===//
|
||||||
|
// PassManagerImpl_New
|
||||||
|
//
|
||||||
|
/// PassManagerImpl_New manages ModulePassManagers
|
||||||
class PassManagerImpl_New : public Pass,
|
class PassManagerImpl_New : public Pass,
|
||||||
public PMDataManager,
|
public PMDataManager,
|
||||||
public PMTopLevelManager {
|
public PMTopLevelManager {
|
||||||
@ -519,8 +531,11 @@ Pass *PMTopLevelManager::findAnalysisPass(AnalysisID AID) {
|
|||||||
|
|
||||||
// Check pass managers
|
// Check pass managers
|
||||||
for (std::vector<Pass *>::iterator I = PassManagers.begin(),
|
for (std::vector<Pass *>::iterator I = PassManagers.begin(),
|
||||||
E = PassManagers.end(); P == NULL && I != E; ++I)
|
E = PassManagers.end(); P == NULL && I != E; ++I) {
|
||||||
P = (*I)->getResolver()->getAnalysisToUpdate(AID, false);
|
PMDataManager *PMD = dynamic_cast<PMDataManager *>(*I);
|
||||||
|
assert(PMD && "This is not a PassManager");
|
||||||
|
P = PMD->findAnalysisPass(AID, false);
|
||||||
|
}
|
||||||
|
|
||||||
// Check other pass managers
|
// Check other pass managers
|
||||||
for (std::vector<PMDataManager *>::iterator I = IndirectPassManagers.begin(),
|
for (std::vector<PMDataManager *>::iterator I = IndirectPassManagers.begin(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user