JIT: enable reading PGO data when switching to optimized (#66618)
authorAndy Ayers <andya@microsoft.com>
Tue, 15 Mar 2022 02:16:02 +0000 (19:16 -0700)
committerGitHub <noreply@github.com>
Tue, 15 Mar 2022 02:16:02 +0000 (19:16 -0700)
commit2737da5817ab121fb43ff5577d1e146e0ec6d213
tree2a509aa16650f27c8e7665016b48b3c7663f13a1
parent6bf873a991bcae3f80f5de155a594cefc8824eea
JIT: enable reading PGO data when switching to optimized (#66618)

When QuickJitForLoops=0 (current default) and the JIT sees a Tier0 method with
a loop, it will switch to optimizing the method instead.

When this happens we should also have set `BBOPT` so that the JIT will read and
incorporate PGO data for the method and/or its inliees. But we were not doing that.

This change sets `BBOPT`.
src/coreclr/jit/flowgraph.cpp