1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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.

llvm-svn: 106811
This commit is contained in:
Jakob Stoklund Olesen 2010-06-24 23:57:35 +00:00
parent 07ff7584a7
commit 7e15f420d0

View File

@ -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);