diff options
| author | Owen Anderson <resistor@mac.com> | 2007-09-23 21:31:44 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2007-09-23 21:31:44 +0000 |
| commit | d20c824b201b1408d7ea7a4e2d601aee14db5cec (patch) | |
| tree | 32d27a02df3a1cdae2c7164770979e6bf9668a00 /include/llvm/Analysis/PostDominators.h | |
| parent | c557a9c00a579417ed7125ee2c998d29572b5144 (diff) | |
Factor the dominator tree calculation details out into DominatorCalculation.h. This
change is not useful in and of itself, but it lays the groundwork for combining
the dominator and postdominator implementations.
Also, factor a few methods that are common to DominatorTree and PostDominatorTree
into DominatorTreeBase. Again, this will make merging the two calculation methods
simpler in the future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PostDominators.h')
| -rw-r--r-- | include/llvm/Analysis/PostDominators.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 8dfeafe55a..2ee6efbae4 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -38,16 +38,10 @@ struct PostDominatorTree : public DominatorTreeBase { } private: void calculate(Function &F); - DomTreeNode *getNodeForBlock(BasicBlock *BB); unsigned DFSPass(BasicBlock *V, unsigned N); void Compress(BasicBlock *V, InfoRec &VInfo); BasicBlock *Eval(BasicBlock *V); void Link(BasicBlock *V, BasicBlock *W, InfoRec &WInfo); - - inline BasicBlock *getIDom(BasicBlock *BB) const { - DenseMap<BasicBlock*, BasicBlock*>::const_iterator I = IDoms.find(BB); - return I != IDoms.end() ? I->second : 0; - } }; |
