post-dom-frontiers requires proper post-dominance

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-11-18 07:28:26 +00:00
parent a1fecc9c26
commit 4b5086cc71

View File

@ -239,7 +239,7 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
DomSetType::const_iterator CDFI = ChildDF.begin(), CDFE = ChildDF.end();
for (; CDFI != CDFE; ++CDFI) {
if (!Node->dominates(DT[*CDFI]))
if (!Node->properlyDominates(DT[*CDFI]))
S.insert(*CDFI);
}
}