LSRA: remove last uses only at use point
authorCarol Eidt <carol.eidt@microsoft.com>
Thu, 5 Apr 2018 01:36:27 +0000 (18:36 -0700)
committerCarol Eidt <carol.eidt@microsoft.com>
Mon, 9 Apr 2018 18:28:06 +0000 (11:28 -0700)
commitefb6e48dd977fae49089eef19c1368c81fb10f3d
treec9445906e079a6e39029b85d5649ef5f8a62421c
parentf5cb31cdf5cce0516d2e20fe38e72bc3fcd947ae
LSRA: remove last uses only at use point

LSRA maintains liveness within a block to determine what's live across a call. It uses the last use bits on lclVar nodes to remove them from the set. However, this should be done at the point of use rather than at the point where the lclVar is encountered in the execution stream.

Fix #17389
src/jit/lsrabuild.cpp