From: Owen Anderson Date: Tue, 30 Sep 2008 23:58:47 +0000 (+0000) Subject: Mark merged-in VNInfo's as being PHIKilled. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=05472ee54bea84f487c6970b741625c3ca410b01;p=oota-llvm.git Mark merged-in VNInfo's as being PHIKilled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56893 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index f6aa44e2346..c277d56f7c9 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/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); }