[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Thu Dec 7 14:17:24 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.52 -> 1.53
---
Log message:
PMDataManager does not maintain LastUser info.
---
Diffs of the changes: (+1 -25)
PassManager.cpp | 26 +-------------------------
1 files changed, 1 insertion(+), 25 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.52 llvm/lib/VMCore/PassManager.cpp:1.53
--- llvm/lib/VMCore/PassManager.cpp:1.52 Thu Dec 7 16:09:36 2006
+++ llvm/lib/VMCore/PassManager.cpp Thu Dec 7 16:17:09 2006
@@ -244,7 +244,6 @@
// Initialize available analysis information.
void initializeAnalysisInfo() {
AvailableAnalysis.clear();
- LastUser.clear();
// Include immutable passes into AvailableAnalysis vector.
std::vector<ImmutablePass *> &ImmutablePasses = TPM->getImmutablePasses();
@@ -268,11 +267,6 @@
return PassVector.end();
}
- inline void setLastUser(Pass *P, Pass *LU) {
- LastUser[P] = LU;
- // TODO : Check if pass P is available.
- }
-
// Access toplevel manager
PMTopLevelManager *getTopLevelManager() { return TPM; }
void setTopLevelManager(PMTopLevelManager *T) { TPM = T; }
@@ -284,10 +278,6 @@
// scheduled to run.
std::map<AnalysisID, Pass*> AvailableAnalysis;
- // Map to keep track of last user of the analysis pass.
- // LastUser->second is the last user of Lastuser->first.
- std::map<Pass *, Pass *> LastUser;
-
// Collection of pass that are managed by this manager
std::vector<Pass *> PassVector;
@@ -510,21 +500,7 @@
/// Remove analysis passes that are not used any longer
void PMDataManager::removeDeadPasses(Pass *P) {
-
- for (std::map<Pass *, Pass *>::iterator I = LastUser.begin(),
- E = LastUser.end(); I !=E; ++I) {
- if (I->second == P) {
- Pass *deadPass = I->first;
- deadPass->releaseMemory();
-
- std::map<AnalysisID, Pass*>::iterator Pos =
- AvailableAnalysis.find(deadPass->getPassInfo());
-
- assert (Pos != AvailableAnalysis.end() &&
- "Pass is not available");
- AvailableAnalysis.erase(Pos);
- }
- }
+ // TODO : reimplement
}
/// Add pass P into the PassVector. Update
More information about the llvm-commits
mailing list