projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8182e
)
Added debug output for inherited passes that are invalidated.
author
Andreas Neustifter
<astifter-llvm@gmx.at>
Fri, 4 Dec 2009 06:58:24 +0000
(06:58 +0000)
committer
Andreas Neustifter
<astifter-llvm@gmx.at>
Fri, 4 Dec 2009 06:58:24 +0000
(06:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90553
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/PassManager.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/PassManager.cpp
b/lib/VMCore/PassManager.cpp
index ae418a0b128f77e41c16886e346f151a901fcd76..c07372c335ab554cdfa3896382d3cf96379118c4 100644
(file)
--- 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);
+ }
}
}
}