JIT: refactor ref count computation into a reusable utility method (#19240)
authorAndy Ayers <andya@microsoft.com>
Tue, 7 Aug 2018 01:55:56 +0000 (18:55 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Aug 2018 01:55:56 +0000 (18:55 -0700)
commitaa1d28a7b24f896df4a389db5f8fa984e84764b7
treeb687d0a47e9409322dc9268a9600d08334270e19
parente1e525663ce21ec6aff28fbc8302cede65a49352
JIT: refactor ref count computation into a reusable utility method (#19240)

Extract out the basic ref count computation into a method that we
can conceptually call later on if we want to recompute counts.

Move one existing RCS_EARLY count for promoted fields of register
args into this recomputation since losing this count bump causes
quite a few diffs.

The hope is to eventually call this method again later in the jit
phase pipeline and then possibly get rid of all the (non-early)
incremental count maintenance we do currently.

Part of #18969
src/jit/compiler.h
src/jit/lclvars.cpp