diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-05 21:57:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-05 21:57:17 +0000 |
commit | 1a8b9dd7fb945ab78232f3853219cc693bcb5fad (patch) | |
tree | 220142c7ef96bbea783262f2cd173438e0ba09e3 /include/llvm/Analysis | |
parent | c631931f87ecf6a7bc48efab5c4e26d89b2ab0b8 (diff) | |
download | external_llvm-1a8b9dd7fb945ab78232f3853219cc693bcb5fad.zip external_llvm-1a8b9dd7fb945ab78232f3853219cc693bcb5fad.tar.gz external_llvm-1a8b9dd7fb945ab78232f3853219cc693bcb5fad.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Analysis/PostDominators.h | 33 | ||||
-rw-r--r-- | include/llvm/Analysis/RegionInfo.h | 3 |
2 files changed, 3 insertions, 33 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 2cd6ae3..0eddb91 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 diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h index 9b4b637..81b71f9 100644 --- a/include/llvm/Analysis/RegionInfo.h +++ b/include/llvm/Analysis/RegionInfo.h @@ -28,9 +28,10 @@ #define LLVM_ANALYSIS_REGION_INFO_H #include "llvm/ADT/PointerIntPair.h" -#include "llvm/Analysis/Dominators.h" +#include "llvm/Analysis/DominanceFrontier.h" #include "llvm/Analysis/PostDominators.h" #include "llvm/Support/Allocator.h" +#include <map> namespace llvm { |