JIT: some lclvars related cleanup (#19077)
authorAndy Ayers <andya@microsoft.com>
Mon, 23 Jul 2018 18:47:17 +0000 (11:47 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Jul 2018 18:47:17 +0000 (11:47 -0700)
commit456d22753b62b5e46b61fa13bef75847229d30ca
tree52ed64cb20be51d1eac453c61870451a49dc7fc6
parent92d2c4bde42569d2aa22e44550d69f7d743bf9a0
JIT: some lclvars related cleanup (#19077)

Consolidate various compiler globals used when setting local var ref
counts by folding them into the visitor:
* lvaMarkRefsCurBlock
* lvaMarkRefsCurStmt
* lvaMarkRefsWeight

Remove the largely vestigial `lvPrefReg` and associated methods to set
or modify this field. Haven't verified but this is likely a remmant of
the legacy backend.

In the one remaning use (lcl var sorting predicates), swap in `lvIsRegArg`
instead, which gets most of the same cases.
src/jit/compiler.h
src/jit/compiler.hpp
src/jit/flowgraph.cpp
src/jit/lclvars.cpp
src/jit/morph.cpp
src/jit/target.h
src/jit/utils.cpp