From 63e07d72f8175cd2d74f0693edf1b0429580d64d Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Sun, 2 Jan 2011 10:50:14 +0000 Subject: [PATCH] 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 --- include/llvm/Analysis/DominatorInternals.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/llvm/Analysis/DominatorInternals.h b/include/llvm/Analysis/DominatorInternals.h index 88e7073f84f..b1895b5f18e 100644 --- a/include/llvm/Analysis/DominatorInternals.h +++ b/include/llvm/Analysis/DominatorInternals.h @@ -238,13 +238,11 @@ void Calculate(DominatorTreeBase::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;