diff options
author | Andreas Neustifter <astifter-llvm@gmx.at> | 2009-12-04 06:58:24 +0000 |
---|---|---|
committer | Andreas Neustifter <astifter-llvm@gmx.at> | 2009-12-04 06:58:24 +0000 |
commit | 1f6ae8172594385bfa369e0551887589a00c4572 (patch) | |
tree | fb52e846e65694b26749798bf7fc4b381901cb26 /lib/VMCore/PassManager.cpp | |
parent | fa8182e3350059d3410776734651d26ce5dbf639 (diff) | |
download | external_llvm-1f6ae8172594385bfa369e0551887589a00c4572.zip external_llvm-1f6ae8172594385bfa369e0551887589a00c4572.tar.gz external_llvm-1f6ae8172594385bfa369e0551887589a00c4572.tar.bz2 |
Added debug output for inherited passes that are invalidated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index ae418a0..c07372c 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -738,9 +738,15 @@ void PMDataManager::removeNotPreservedAnalysis(Pass *P) { std::map<AnalysisID, Pass *>::iterator Info = I++; if (!dynamic_cast<ImmutablePass*>(Info->second) && std::find(PreservedSet.begin(), PreservedSet.end(), Info->first) == - PreservedSet.end()) + PreservedSet.end()) { // Remove this analysis + if (PassDebugging >= Details) { + Pass *S = Info->second; + errs() << " -- '" << P->getPassName() << "' is not preserving '"; + errs() << S->getPassName() << "'\n"; + } InheritedAnalysis[Index]->erase(Info); + } } } } |