Update comments.
authorDevang Patel <dpatel@apple.com>
Tue, 14 Nov 2006 00:03:04 +0000 (00:03 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 14 Nov 2006 00:03:04 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31713 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/PassManager.cpp

index 81753a11810c63127d4fe268fa7b0dc0c00801db..c3af45e8a63577cea9bc4b1391df8b96b20dac19 100644 (file)
@@ -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