diff options
Diffstat (limited to 'llvm/lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PreAllocSplitting.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp index dc4a42ae375..4061859f740 100644 --- a/llvm/lib/CodeGen/PreAllocSplitting.cpp +++ b/llvm/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. |