[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Mon Nov 13 16:03:19 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.22 -> 1.23
---
Log message:
Update comments.
---
Diffs of the changes: (+8 -5)
PassManager.cpp | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.22 llvm/lib/VMCore/PassManager.cpp:1.23
--- llvm/lib/VMCore/PassManager.cpp:1.22 Mon Nov 13 16:53:19 2006
+++ llvm/lib/VMCore/PassManager.cpp Mon Nov 13 18:03:04 2006
@@ -62,10 +62,16 @@
}
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 @@
}
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
More information about the llvm-commits
mailing list