[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Fri Dec 8 16:09:27 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.73 -> 1.74
---
Log message:
Top level pass manager keeps track of other managers, so this can be
removed now.
---
Diffs of the changes: (+1 -8)
PassManager.cpp | 9 +--------
1 files changed, 1 insertion(+), 8 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.73 llvm/lib/VMCore/PassManager.cpp:1.74
--- llvm/lib/VMCore/PassManager.cpp:1.73 Fri Dec 8 18:07:38 2006
+++ llvm/lib/VMCore/PassManager.cpp Fri Dec 8 18:09:12 2006
@@ -693,14 +693,7 @@
if (SearchParent)
return TPM->findAnalysisPass(AID);
- // FIXME : This is expensive and requires. Need to check only managers not all passes.
- // One solution is to collect managers in advance at TPM level.
- Pass *P = NULL;
- for(std::vector<Pass *>::iterator I = passVectorBegin(),
- E = passVectorEnd(); P == NULL && I!= E; ++I ) {
- P = (*I)->getResolver()->getAnalysisToUpdate(AID, false /* Do not search parents again */);
- }
- return P;
+ return NULL;
}
More information about the llvm-commits
mailing list