summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/PostDominators.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-05 21:57:17 +0000
committerChris Lattner <sabre@nondot.org>2011-04-05 21:57:17 +0000
commit1a8b9dd7fb945ab78232f3853219cc693bcb5fad (patch)
tree220142c7ef96bbea783262f2cd173438e0ba09e3 /include/llvm/Analysis/PostDominators.h
parentc631931f87ecf6a7bc48efab5c4e26d89b2ab0b8 (diff)
downloadllvm-1a8b9dd7fb945ab78232f3853219cc693bcb5fad.tar.gz
llvm-1a8b9dd7fb945ab78232f3853219cc693bcb5fad.tar.bz2
llvm-1a8b9dd7fb945ab78232f3853219cc693bcb5fad.tar.xz
remove postdom frontiers, because it is dead. Forward dom frontiers are
still used by RegionInfo :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PostDominators.h')
-rw-r--r--include/llvm/Analysis/PostDominators.h33
1 files changed, 1 insertions, 32 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index 2cd6ae346e..0eddb9105e 100644
--- a/include/llvm/Analysis/PostDominators.h
+++ b/include/llvm/Analysis/PostDominators.h
@@ -14,7 +14,7 @@
#ifndef LLVM_ANALYSIS_POST_DOMINATORS_H
#define LLVM_ANALYSIS_POST_DOMINATORS_H
-#include "llvm/Analysis/DominanceFrontier.h"
+#include "llvm/Analysis/Dominators.h"
namespace llvm {
@@ -101,37 +101,6 @@ template <> struct GraphTraits<PostDominatorTree*>
}
};
-/// PostDominanceFrontier Class - Concrete subclass of DominanceFrontier that is
-/// used to compute the a post-dominance frontier.
-///
-struct PostDominanceFrontier : public DominanceFrontierBase {
- static char ID;
- PostDominanceFrontier()
- : DominanceFrontierBase(ID, true) {
- initializePostDominanceFrontierPass(*PassRegistry::getPassRegistry());
- }
-
- virtual bool runOnFunction(Function &) {
- Frontiers.clear();
- PostDominatorTree &DT = getAnalysis<PostDominatorTree>();
- Roots = DT.getRoots();
- if (const DomTreeNode *Root = DT.getRootNode())
- calculate(DT, Root);
- return false;
- }
-
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
- AU.addRequired<PostDominatorTree>();
- }
-
-private:
- const DomSetType &calculate(const PostDominatorTree &DT,
- const DomTreeNode *Node);
-};
-
-FunctionPass* createPostDomFrontier();
-
} // End llvm namespace
#endif