diff options
author | Owen Anderson <resistor@mac.com> | 2008-09-30 23:58:47 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-09-30 23:58:47 +0000 |
commit | 05472ee54bea84f487c6970b741625c3ca410b01 (patch) | |
tree | 4e7dfaee8968de0586b972fe38c953c2292cc058 /lib/CodeGen/StrongPHIElimination.cpp | |
parent | 309c6162c62ba35ded8650a0ea4d2036de7480fd (diff) | |
download | llvm-05472ee54bea84f487c6970b741625c3ca410b01.tar.gz llvm-05472ee54bea84f487c6970b741625c3ca410b01.tar.bz2 llvm-05472ee54bea84f487c6970b741625c3ca410b01.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index f6aa44e234..c277d56f7c 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); } |