JIT: three fixes for OSR (#62367)
authorAndy Ayers <andya@microsoft.com>
Sat, 4 Dec 2021 03:41:55 +0000 (19:41 -0800)
committerGitHub <noreply@github.com>
Sat, 4 Dec 2021 03:41:55 +0000 (19:41 -0800)
commit43b58c2ac6371b2ef89ade6224af4179a75629ae
treed970951f1626a2a8bd30258b3cfd459e52c65713
parent9f4809e8b951fbb626a31e98cc6a022868f053f3
JIT: three fixes for OSR (#62367)

Found when trying to enable OSR by default and prospecting for arm64 support.

* Explicitly initalize the OSR step variable.
* Prevent `fgOptimizeUncondBranchToSimpleCond` from changing the scratch entry
  BB to have conditional flow.
* Retain runtime supplied patchpoint info when cleaning up after an altjit failure.
src/coreclr/jit/fgopt.cpp
src/coreclr/vm/jitinterface.h