1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Provide the right AnalysisID for postdominators

llvm-svn: 1616
This commit is contained in:
Chris Lattner 2002-01-31 18:29:24 +00:00
parent 15709802b8
commit 11aaf58393
2 changed files with 10 additions and 6 deletions

View File

@ -152,10 +152,12 @@ void cfg::DominatorSet::calcPostDominatorSet(Method *M) {
void cfg::DominatorSet::getAnalysisUsageInfo(Pass::AnalysisSet &Requires,
Pass::AnalysisSet &Destroyed,
Pass::AnalysisSet &Provided) {
if (isPostDominator())
if (isPostDominator()) {
Provided.push_back(PostDomID);
Requires.push_back(UnifyMethodExitNodes::ID);
Provided.push_back(ID);
} else {
Provided.push_back(ID);
}
}

View File

@ -152,10 +152,12 @@ void cfg::DominatorSet::calcPostDominatorSet(Method *M) {
void cfg::DominatorSet::getAnalysisUsageInfo(Pass::AnalysisSet &Requires,
Pass::AnalysisSet &Destroyed,
Pass::AnalysisSet &Provided) {
if (isPostDominator())
if (isPostDominator()) {
Provided.push_back(PostDomID);
Requires.push_back(UnifyMethodExitNodes::ID);
Provided.push_back(ID);
} else {
Provided.push_back(ID);
}
}