From 15e6be8cc514c0b79ffe4ddfe18c33a5ac31f68e Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 30 Sep 2008 23:58:47 +0000 Subject: [PATCH] Mark merged-in VNInfo's as being PHIKilled. llvm-svn: 56893 --- llvm/lib/CodeGen/StrongPHIElimination.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index f6aa44e2346d..c277d56f7c97 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -977,6 +977,11 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) { } } + LiveInterval& Int = LI.getOrCreateInterval(I->first); + const LiveRange* LR = + Int.getLiveRangeContaining(LI.getMBBEndIdx(SI->second)); + LR->valno->hasPHIKill = true; + I->second.erase(SI->first); }