aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-24 23:57:35 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-24 23:57:35 +0000
commit535617ab120d25498f849fff8e7f22fa630e9a28 (patch)
tree99f0a42569d3431d96b3bfb83a4f959990caf087 /lib/CodeGen/LiveInterval.cpp
parentf3123f4f3fc3272a38cb831d1600af819c2f011b (diff)
downloadexternal_llvm-535617ab120d25498f849fff8e7f22fa630e9a28.zip
external_llvm-535617ab120d25498f849fff8e7f22fa630e9a28.tar.gz
external_llvm-535617ab120d25498f849fff8e7f22fa630e9a28.tar.bz2
Make sure all eliminated kills are removed from VNInfo lists.
This fixes PR7479 and PR7485. The test cases from those PRs are big, so not included. However, PR7485 comes from self hosting on FreeBSD, so we will surely hear about any regression. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r--lib/CodeGen/LiveInterval.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp
index 7eb430d..bf0bdd1 100644
--- a/lib/CodeGen/LiveInterval.cpp
+++ b/lib/CodeGen/LiveInterval.cpp
@@ -484,6 +484,8 @@ void LiveInterval::join(LiveInterval &Other,
I->valno = NewVNInfo[OtherAssignments[RangeNo]];
assert(I->valno && "Adding a dead range?");
InsertPos = addRangeFrom(*I, InsertPos);
+ InsertPos->valno->removeKills(InsertPos->start,
+ InsertPos->end.getPrevSlot());
}
ComputeJoinedWeight(Other);