From 223ea549d1d8ae1b7e730662194b6e0fb6935619 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 8 Jul 2001 05:54:09 +0000 Subject: [PATCH] Fixed post dominator frontiers! Yaay! llvm-svn: 157 --- lib/Analysis/PostDominators.cpp | 2 +- lib/VMCore/Dominators.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index c9e15f4a51a..14ed6c8b81e 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -358,7 +358,7 @@ cfg::DominanceFrontier::calcPostDomFrontier(const DominatorTree &DT, for (DominatorTree::Node::const_iterator NI = Node->begin(), NE = Node->end(); NI != NE; ++NI) { DominatorTree::Node *IDominee = *NI; - const DomSetType &ChildDF = calcDomFrontier(DT, IDominee); + const DomSetType &ChildDF = calcPostDomFrontier(DT, IDominee); DomSetType::const_iterator CDFI = ChildDF.begin(), CDFE = ChildDF.end(); for (; CDFI != CDFE; ++CDFI) { diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index c9e15f4a51a..14ed6c8b81e 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -358,7 +358,7 @@ cfg::DominanceFrontier::calcPostDomFrontier(const DominatorTree &DT, for (DominatorTree::Node::const_iterator NI = Node->begin(), NE = Node->end(); NI != NE; ++NI) { DominatorTree::Node *IDominee = *NI; - const DomSetType &ChildDF = calcDomFrontier(DT, IDominee); + const DomSetType &ChildDF = calcPostDomFrontier(DT, IDominee); DomSetType::const_iterator CDFI = ChildDF.begin(), CDFE = ChildDF.end(); for (; CDFI != CDFE; ++CDFI) {