diff options
author | Owen Anderson <resistor@mac.com> | 2007-09-23 22:16:38 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-09-23 22:16:38 +0000 |
commit | eefb31094f2481815884afba0076eadbf89045f1 (patch) | |
tree | bd144482772d1380b70861b38b1a6afcd3441534 | |
parent | 96d514d21afc6d77b2af0606fb810749eb19816a (diff) |
Move DFSPass back down into DominatorTree. I need to figure out what the difference is between it
and the PostDomTree version first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42250 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 3 | ||||
-rw-r--r-- | lib/VMCore/Dominators.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index eec87d4347..f4c31a5f16 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -129,7 +129,6 @@ protected: // Info - Collection of information used during the computation of idoms. DenseMap<BasicBlock*, InfoRec> Info; - unsigned DFSPass(BasicBlock *V, unsigned N); public: DominatorTreeBase(intptr_t ID, bool isPostDom) @@ -319,6 +318,8 @@ private: friend BasicBlock *DTEval(DominatorTree& DT, BasicBlock *v); friend void DTLink(DominatorTree& DT, BasicBlock *V, BasicBlock *W, InfoRec &WInfo); + + unsigned DFSPass(BasicBlock *V, unsigned N); }; //===------------------------------------- diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 860387fffd..0fc024ba6f 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -53,7 +53,7 @@ char DominatorTree::ID = 0; static RegisterPass<DominatorTree> E("domtree", "Dominator Tree Construction", true); -unsigned DominatorTreeBase::DFSPass(BasicBlock *V, unsigned N) { +unsigned DominatorTree::DFSPass(BasicBlock *V, unsigned N) { // This is more understandable as a recursive algorithm, but we can't use the // recursive algorithm due to stack depth issues. Keep it here for // documentation purposes. |