aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PreAllocSplitting.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-02-01 08:41:54 +0000
committerOwen Anderson <resistor@mac.com>2009-02-01 08:41:54 +0000
commit4a6d13e8fbbdc3fe6b783905a303368d13321611 (patch)
tree385d27562bdf2f121fb8814ae20fd90888d6ecf5 /lib/CodeGen/PreAllocSplitting.cpp
parent5caedc0f0905bfc5472282cf56f92ebf14fb1c66 (diff)
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
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r--lib/CodeGen/PreAllocSplitting.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp
index dc4a42ae37..4061859f74 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.