From: Cameron Zwarich Date: Sun, 23 Jan 2011 04:13:53 +0000 (+0000) Subject: Simplify some code now that we've removed the more optimal (but slower) version X-Git-Tag: android-x86-6.0-r1~1002^2~973 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5c96c69161aa4480c432027e363d0ea1aa34acee;p=android-x86%2Fexternal-llvm.git Simplify some code now that we've removed the more optimal (but slower) version of the link-eval data structure from dominator computation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124053 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/DominatorInternals.h b/include/llvm/Analysis/DominatorInternals.h index 5687c2350fd..7d15fc4ad36 100644 --- a/include/llvm/Analysis/DominatorInternals.h +++ b/include/llvm/Analysis/DominatorInternals.h @@ -159,13 +159,6 @@ Eval(DominatorTreeBase& DT, return VInfo.Label; } -template -void Link(DominatorTreeBase& DT, - unsigned DFSNumV, typename GraphT::NodeType* W, - typename DominatorTreeBase::InfoRec &WInfo) { - WInfo.Ancestor = DFSNumV; -} - template void Calculate(DominatorTreeBase::NodeType>& DT, FuncT& F) { @@ -248,7 +241,8 @@ void Calculate(DominatorTreeBase::NodeType>& DT, Buckets[WInfo.Semi] = i; } - Link(DT, WInfo.Parent, W, WInfo); + // Link W to its DFS tree parent. + WInfo.Ancestor = WInfo.Parent; } if (N >= 1) {