summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-11-14 00:03:04 +0000
committerDevang Patel <dpatel@apple.com>2006-11-14 00:03:04 +0000
commitdafa4ddc466fe656d853f3fbc4a7805d37fbf1eb (patch)
treec9c2955f3d52c63b3a6e01292c21272a21a23b12
parentdbd3d294e6dec8928f56975b19b91c8772d7f937 (diff)
downloadbcm5719-llvm-dafa4ddc466fe656d853f3fbc4a7805d37fbf1eb.tar.gz
bcm5719-llvm-dafa4ddc466fe656d853f3fbc4a7805d37fbf1eb.zip
Update comments.
llvm-svn: 31713
-rw-r--r--llvm/lib/VMCore/PassManager.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp
index 81753a11810..c3af45e8a63 100644
--- a/llvm/lib/VMCore/PassManager.cpp
+++ b/llvm/lib/VMCore/PassManager.cpp
@@ -62,10 +62,16 @@ public:
}
private:
- // Analysis required by the passes managed by this manager
+ // Analysis required by the passes managed by this manager. This information
+ // used while selecting pass manager during addPass. If a pass does not
+ // preserve any analysis required by other passes managed by current
+ // pass manager then new pass manager is used.
std::vector<AnalysisID> RequiredAnalysis;
- // set of available Analysis
+ // Set of available Analysis. This information is used while scheduling
+ // pass. If a pass requires an analysis which is not not available then
+ // equired analysis pass is scheduled to run before the pass itself is
+ // scheduled to run.
std::set<AnalysisID> AvailableAnalysis;
// Collection of pass that are managed by this manager
@@ -510,9 +516,6 @@ void PassManagerImpl_New::schedulePass(Pass *P) {
}
addPass(P);
-
- // TODO : Walk through all managers and remove not preserved analysis
- // TODO : remove dead passes
}
/// Schedule all passes from the queue by adding them in their
OpenPOWER on IntegriCloud