JIT: don't allocate promoted struct death vars map for clear or lookup (#19753)
authorAndy Ayers <andya@microsoft.com>
Fri, 31 Aug 2018 15:20:53 +0000 (08:20 -0700)
committerGitHub <noreply@github.com>
Fri, 31 Aug 2018 15:20:53 +0000 (08:20 -0700)
commitde74b8ca4116235601feaf868f3ab0a06615ec3d
treed0d7b229d858a1c90574d2d0838b94943e858b8d
parentf597da2dd522ca1ca7293ef83798aae86840e588
JIT: don't allocate promoted struct death vars map for clear or lookup (#19753)

Only allocate this map if we're adding something. Refactor clearing and
lookup to do minimal work if the map hasn't been allocated (and it won't
have been in debug / minopts).

Saves a tiny bit of throughput and memory.
src/jit/compiler.h
src/jit/liveness.cpp
src/jit/treelifeupdater.cpp