Update LocalRewriter::DistanceMap when inserting stack loads.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 15 Aug 2009 11:03:03 +0000 (11:03 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 15 Aug 2009 11:03:03 +0000 (11:03 +0000)
commit7a1e872564a65a8494412d72e15c2f48735d32ab
tree673b4b439f7ac57ad80f1ca2ccb0c4616a1aa32c
parentc4f661e3dec2e574a59d32bef8679af832349fd2
Update LocalRewriter::DistanceMap when inserting stack loads.

In the included test case, a stack load was not included in DistanceMap. That
caused TransferDeadness to ignore the instruction, leading to a scavenger
assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79090 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegRewriter.cpp
test/CodeGen/Blackfin/2009-08-15-MissingDead.ll [new file with mode: 0644]