JIT: recompute local ref counts after lower
authorAndy Ayers <andya@microsoft.com>
Thu, 2 Aug 2018 18:23:27 +0000 (11:23 -0700)
committerAndy Ayers <andya@microsoft.com>
Tue, 7 Aug 2018 01:59:11 +0000 (18:59 -0700)
commit24f0c05e1c681d08f883ce03a158e3d2e25a7419
tree4155cc6df834514652460b33539234bfe2f8558e
parent82268e2628d972528d2f9aece252a1981e837c02
JIT: recompute local ref counts after lower

Update `lvaComputeRefCounts` to encapsulate running ref counts post-lower
and to also handle the fast jitting cases.

Invoke this after lower to provide recomputed (and more accurate) counts.

Part of dotnet/coreclr#18969.

Commit migrated from https://github.com/dotnet/coreclr/commit/0862b3077b301195fbbcfeb4d302e31cfe74845d
src/coreclr/src/jit/lclvars.cpp
src/coreclr/src/jit/lower.cpp