mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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
This commit is contained in:
parent
fa8182e335
commit
1f6ae81725
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user