JIT: don't compute edge weights if not optimizing (#19736)
authorAndy Ayers <andya@microsoft.com>
Thu, 30 Aug 2018 15:01:46 +0000 (08:01 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Aug 2018 15:01:46 +0000 (08:01 -0700)
commitd43347e043beb3ae64c8db55f72708c1ce60511e
tree0896ea8cfa302bac84e34afc93ca170e0d149545
parent819f19a3287ccd179cb8bcbac24d6817c1e2fb71
JIT: don't compute edge weights if not optimizing (#19736)

We were spending a bit less than 1% of jit time computing edge weights
for minopts an debug codegen, but then never using them.

Also when optimizing we wanted to just compute edge weights but ran
through a bit more code than that.

Restructure the code so it's clearer what runs when, and bypass the
edge weight computations for minopts and debug codegen.
src/jit/compiler.cpp
src/jit/compiler.h
src/jit/flowgraph.cpp