mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
Simplify.
Fix outdated comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acd12fc3a4
commit
0938f74242
@ -1590,7 +1590,7 @@ void ModulePass::assignPassManager(PMStack &PMS,
|
||||
void FunctionPass::assignPassManager(PMStack &PMS,
|
||||
PassManagerType PreferredType) {
|
||||
|
||||
// Find Module Pass Manager (TODO : Or Call Graph Pass Manager)
|
||||
// Find Module Pass Manager
|
||||
while(!PMS.empty()) {
|
||||
if (PMS.top()->getPassManagerType() > PMT_FunctionPassManager)
|
||||
PMS.pop();
|
||||
@ -1614,13 +1614,7 @@ void FunctionPass::assignPassManager(PMStack &PMS,
|
||||
|
||||
// [3] Assign manager to manage this new manager. This may create
|
||||
// and push new managers into PMS
|
||||
|
||||
// If Call Graph Pass Manager is active then use it to manage
|
||||
// this new Function Pass manager.
|
||||
if (PMD->getPassManagerType() == PMT_CallGraphPassManager)
|
||||
FPP->assignPassManager(PMS, PMT_CallGraphPassManager);
|
||||
else
|
||||
FPP->assignPassManager(PMS);
|
||||
FPP->assignPassManager(PMS, PMD->getPassManagerType());
|
||||
|
||||
// [4] Push new manager into PMS
|
||||
PMS.push(FPP);
|
||||
|
Loading…
Reference in New Issue
Block a user