Inline refactoring: move native callsite estimator
authorAndy Ayers <andya@microsoft.com>
Tue, 8 Mar 2016 23:13:56 +0000 (15:13 -0800)
committerAndy Ayers <andya@microsoft.com>
Wed, 9 Mar 2016 19:03:54 +0000 (11:03 -0800)
commit9f389711a3ed282450f235df40b2d568d918d5b5
tree0dd9981d1973decb52bcdd953462cd46d78ba4f8
parent474be788e31b2378748e419bd216d4310bd15e49
Inline refactoring: move native callsite estimator

Move the native call site estimation logic into `LegacyPolicy`. Rework
the remaining per-callsite bonus multipliers so that they fit into the
observation framework. Remove `hasNativeSizeEstimate` and instead
check that the inline is a candidate and its observation is a
discretionary inline. Fix header comment in `fgFindJumpTargets`.

Commit migrated from https://github.com/dotnet/coreclr/commit/97c0fcb5bb5b85d45854dcd25e60020215ff6ef9
src/coreclr/src/jit/compiler.cpp
src/coreclr/src/jit/compiler.h
src/coreclr/src/jit/flowgraph.cpp
src/coreclr/src/jit/importer.cpp
src/coreclr/src/jit/inline.def
src/coreclr/src/jit/inline.h
src/coreclr/src/jit/inlinepolicy.cpp
src/coreclr/src/jit/inlinepolicy.h