[llvm-commits] [llvm] r55993 - /llvm/trunk/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Tue Sep 9 10:56:50 PDT 2008
Author: dpatel
Date: Tue Sep 9 12:56:50 2008
New Revision: 55993
URL: http://llvm.org/viewvc/llvm-project?rev=55993&view=rev
Log:
Simplify.
Fix outdated comment.
Modified:
llvm/trunk/lib/VMCore/PassManager.cpp
Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=55993&r1=55992&r2=55993&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Tue Sep 9 12:56:50 2008
@@ -1590,7 +1590,7 @@
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 @@
// [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);
More information about the llvm-commits
mailing list