diff options
-rw-r--r-- | include/llvm/Analysis/DominatorInternals.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/llvm/Analysis/DominatorInternals.h b/include/llvm/Analysis/DominatorInternals.h index 5687c2350f..7d15fc4ad3 100644 --- a/include/llvm/Analysis/DominatorInternals.h +++ b/include/llvm/Analysis/DominatorInternals.h @@ -159,13 +159,6 @@ Eval(DominatorTreeBase<typename GraphT::NodeType>& DT, return VInfo.Label; } -template<class GraphT> -void Link(DominatorTreeBase<typename GraphT::NodeType>& DT, - unsigned DFSNumV, typename GraphT::NodeType* W, - typename DominatorTreeBase<typename GraphT::NodeType>::InfoRec &WInfo) { - WInfo.Ancestor = DFSNumV; -} - template<class FuncT, class NodeT> void Calculate(DominatorTreeBase<typename GraphTraits<NodeT>::NodeType>& DT, FuncT& F) { @@ -248,7 +241,8 @@ void Calculate(DominatorTreeBase<typename GraphTraits<NodeT>::NodeType>& DT, Buckets[WInfo.Semi] = i; } - Link<GraphT>(DT, WInfo.Parent, W, WInfo); + // Link W to its DFS tree parent. + WInfo.Ancestor = WInfo.Parent; } if (N >= 1) { |