Fix GC Poll inlining. (#39881)
authorEugene Rozenfeld <erozen@microsoft.com>
Fri, 24 Jul 2020 20:19:43 +0000 (13:19 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2020 20:19:43 +0000 (13:19 -0700)
commit36657793513070913cc7e95589a712aad3e8228f
treef715d734a5fe090a07b246e1e47ad12f210f9fd4
parent7abd11409c7baf1babe38e82c551167294e8a13d
Fix GC Poll inlining. (#39881)

* Don't inline GC polls in cold basic blocks.
* Allow GC poll inlining in basic blocks with `BBF_LOOP_PREHEADER` or `BBF_RETLESS_CALL` set.

This fixes one of the assert seen in https://github.com/dotnet/runtime/pull/39474#issuecomment-662033060

Contributes to resolving #39726.
src/coreclr/src/jit/flowgraph.cpp