Fix regression in runtime-jit-experimental (#70797)
authorAman Khalid <t-amankhalid@microsoft.com>
Thu, 16 Jun 2022 15:09:08 +0000 (08:09 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Jun 2022 15:09:08 +0000 (08:09 -0700)
commit8b3be893f0259d7b5c9a7ea66f9bdeecc9cafc13
tree554fcfbb32427aa7d5bf7015aac6b6b5eb5446e6
parent3b04dc1c69935c3e59a137f48494021fd045050b
Fix regression in runtime-jit-experimental (#70797)

The newly-introduced `emitRemoveJumpToNextInst` optimization caused
a regression when hot/cold-splitting, where jumps from the last hot
instruction to the first cold instruction were erroneously removed.
This is fixed by disabling the `isRemovableJmpCandidate` flag for
branches between hot/cold sections.

On an unrelated note, a JIT dump message has been added to indicate
stress-splitting is occurring.
src/coreclr/jit/codegenlinear.cpp
src/coreclr/jit/flowgraph.cpp