[llvm-commits] [llvm] r90553 - /llvm/trunk/lib/VMCore/PassManager.cpp
Andreas Neustifter
astifter-llvm at gmx.at
Thu Dec 3 22:58:25 PST 2009
Author: astifter
Date: Fri Dec 4 00:58:24 2009
New Revision: 90553
URL: http://llvm.org/viewvc/llvm-project?rev=90553&view=rev
Log:
Added debug output for inherited passes that are invalidated.
Modified:
llvm/trunk/lib/VMCore/PassManager.cpp
Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=90553&r1=90552&r2=90553&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Fri Dec 4 00:58:24 2009
@@ -738,9 +738,15 @@
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);
+ }
}
}
}
More information about the llvm-commits
mailing list