JIT: build pred lists before instrumentation (#81288)
authorAndy Ayers <andya@microsoft.com>
Mon, 30 Jan 2023 23:25:58 +0000 (15:25 -0800)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 23:25:58 +0000 (15:25 -0800)
commitb6935d3791cbcb0a680512a1dab3eeaefdbd328d
treeebc3179e209a149a3ed3586045e0f1e36d3265d5
parent3c76e140da9539e1fc0e0a44af0af3e01ceca920
JIT: build pred lists before instrumentation (#81288)

Move pred list building to just before instrumentation (and just after
importation -- we are getting very close to the front of the phase list now).

The block and edge count instrumenters were both using cheap preds to keep
track of some relocated count probes. Revise this so they can use the regular
pred lists. Also rework both approaches so their `RelocateProbes` methods are
fairly similar and perhaps could be unified one day.

Contributes to #80193.
src/coreclr/jit/compiler.cpp
src/coreclr/jit/fgprofile.cpp