From: Owen Anderson Date: Sun, 1 Feb 2009 08:41:54 +0000 (+0000) Subject: Fix test failures causes by my previous commit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4a6d13e8fbbdc3fe6b783905a303368d13321611;p=oota-llvm.git Fix test failures causes by my previous commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63492 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp index dc4a42ae375..4061859f740 100644 --- a/lib/CodeGen/PreAllocSplitting.cpp +++ b/lib/CodeGen/PreAllocSplitting.cpp @@ -486,6 +486,7 @@ VNInfo* PreAllocSplitting::PerformPHIConstruction( if (MBB->pred_size() == 1 && !ret->hasPHIKill) { LI->MergeValueNumberInto(ret, IncomingVNs.begin()->second); + Phis[MBB] = ret = IncomingVNs.begin()->second; } else { // Otherwise, merge the incoming VNInfos with a phi join. Create a new // VNInfo to represent the joined value.