summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-09-30 23:58:47 +0000
committerOwen Anderson <resistor@mac.com>2008-09-30 23:58:47 +0000
commit15e6be8cc514c0b79ffe4ddfe18c33a5ac31f68e (patch)
tree0019a05a887fd24189b56025e08a3bf2efc4df96 /llvm/lib/CodeGen
parente8450fefdd14592f99f60e6ea84fc450921ac027 (diff)
downloadbcm5719-llvm-15e6be8cc514c0b79ffe4ddfe18c33a5ac31f68e.tar.gz
bcm5719-llvm-15e6be8cc514c0b79ffe4ddfe18c33a5ac31f68e.zip
Mark merged-in VNInfo's as being PHIKilled.
llvm-svn: 56893
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index f6aa44e2346..c277d56f7c9 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);
}
OpenPOWER on IntegriCloud