Fix test failures causes by my previous commit.
authorOwen Anderson <resistor@mac.com>
Sun, 1 Feb 2009 08:41:54 +0000 (08:41 +0000)
committerOwen Anderson <resistor@mac.com>
Sun, 1 Feb 2009 08:41:54 +0000 (08:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63492 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PreAllocSplitting.cpp

index dc4a42ae375ec5ab51cfa5d3e9c2c776abb8a989..4061859f740c23371d52392a9ad7991c7554800d 100644 (file)
@@ -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.