[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Tue Dec 12 14:21:52 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.76 -> 1.77
---
Log message:
Initialize AnalysisImpls for ImmutablePass.
---
Diffs of the changes: (+4 -1)
PassManager.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.76 llvm/lib/VMCore/PassManager.cpp:1.77
--- llvm/lib/VMCore/PassManager.cpp:1.76 Tue Dec 12 16:02:16 2006
+++ llvm/lib/VMCore/PassManager.cpp Tue Dec 12 16:21:37 2006
@@ -399,7 +399,9 @@
// top level manager. Set up analysis resolver to connect them.
AnalysisResolver_New *AR = new AnalysisResolver_New(*this);
P->setResolver(AR);
+ initializeAnalysisImpl(P);
addImmutablePass(IP);
+ recordAvailableAnalysis(IP);
}
else
addPass(P);
@@ -504,7 +506,9 @@
// top level manager. Set up analysis resolver to connect them.
AnalysisResolver_New *AR = new AnalysisResolver_New(*this);
P->setResolver(AR);
+ initializeAnalysisImpl(P);
addImmutablePass(IP);
+ recordAvailableAnalysis(IP);
}
else
addPass(P);
@@ -634,7 +638,6 @@
// Take a note of analysis required and made available by this pass.
// Remove the analysis not preserved by this pass
- initializeAnalysisImpl(P);
removeNotPreservedAnalysis(P);
recordAvailableAnalysis(P);
}
More information about the llvm-commits
mailing list