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:
parent
15709802b8
commit
11aaf58393
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user