[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Thu Dec 7 13:02:23 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.45 -> 1.46
---
Log message:
While initializing AvailableAnalysis info, make ImmutablePasses available
immediately.
---
Diffs of the changes: (+6 -0)
PassManager.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.45 llvm/lib/VMCore/PassManager.cpp:1.46
--- llvm/lib/VMCore/PassManager.cpp:1.45 Thu Dec 7 14:51:18 2006
+++ llvm/lib/VMCore/PassManager.cpp Thu Dec 7 15:02:08 2006
@@ -218,6 +218,12 @@
void initializeAnalysisInfo() {
AvailableAnalysis.clear();
LastUser.clear();
+
+ // Include immutable passes into AvailableAnalysis vector.
+ std::vector<ImmutablePass *> &ImmutablePasses = TPM->getImmutablePasses();
+ for (std::vector<ImmutablePass *>::iterator I = ImmutablePasses.begin(),
+ E = ImmutablePasses.end(); I != E; ++I)
+ recordAvailableAnalysis(*I);
}
// All Required analyses should be available to the pass as it runs! Here
More information about the llvm-commits
mailing list