JIT: fix layering of profile and model inlining policies (#46612)
authorAndy Ayers <andya@microsoft.com>
Wed, 6 Jan 2021 17:01:14 +0000 (09:01 -0800)
committerGitHub <noreply@github.com>
Wed, 6 Jan 2021 17:01:14 +0000 (09:01 -0800)
commitcc1198a1de867915ef0c604e4426e708c0b9c9b2
tree9f11863824dd76dad018a7e34d2651beaa14e9d6
parente4c6c4c4422b15c526642ee139e89bda4f83b242
JIT: fix layering of profile and model inlining policies (#46612)

Both these policies delegate to the discretionary policy. When that policy
makes a decision, the overlaying policies shouldn't take further action.

In particular, in some test cases we were failing an inline twice for
recursion depth, once via the discretionary policy, and once via the
overlay policy; this triggered an assert.
src/coreclr/jit/inlinepolicy.cpp