diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-01-02 10:50:14 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-01-02 10:50:14 +0000 |
commit | 63e07d72f8175cd2d74f0693edf1b0429580d64d (patch) | |
tree | 91ba31d412810b6fd39f7195efa09681974b0c1d /include/llvm/Analysis | |
parent | 2a8c22aa6824143fdf4c00d4486c65eca26f6c9f (diff) | |
download | external_llvm-63e07d72f8175cd2d74f0693edf1b0429580d64d.zip external_llvm-63e07d72f8175cd2d74f0693edf1b0429580d64d.tar.gz external_llvm-63e07d72f8175cd2d74f0693edf1b0429580d64d.tar.bz2 |
Move a load into the only branch where it is used and eliminate a temporary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/DominatorInternals.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Analysis/DominatorInternals.h b/include/llvm/Analysis/DominatorInternals.h index 88e7073..b1895b5 100644 --- a/include/llvm/Analysis/DominatorInternals.h +++ b/include/llvm/Analysis/DominatorInternals.h @@ -238,13 +238,11 @@ void Calculate(DominatorTreeBase<typename GraphTraits<NodeT>::NodeType>& DT, } } - typename GraphT::NodeType* WParent = DT.Vertex[WInfo.Parent]; - // If V is a non-root vertex and sdom(V) = parent(V), then idom(V) is // necessarily parent(V). In this case, set idom(V) here and avoid placing // V into a bucket. if (WInfo.Semi == WInfo.Parent) { - DT.IDoms[W] = WParent; + DT.IDoms[W] = DT.Vertex[WInfo.Parent]; } else { Buckets[i] = Buckets[WInfo.Semi]; Buckets[WInfo.Semi] = i; |