mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 16:35:10 +00:00
Provide the right AnalysisID for postdominators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0253ceeb56
commit
65b9709071
@ -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…
x
Reference in New Issue
Block a user