mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 13:20:29 +00:00
Added debug output for inherited passes that are invalidated.
llvm-svn: 90553
This commit is contained in:
parent
9e539d17d4
commit
c427ec12c0
@ -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