Inliner: use offset in xml replay
authorAndy Ayers <andya@microsoft.com>
Tue, 24 May 2016 18:12:14 +0000 (11:12 -0700)
committerAndy Ayers <andya@microsoft.com>
Thu, 26 May 2016 01:21:35 +0000 (18:21 -0700)
commit6d0e7f2f49b30f69d0f5e34564b4f810aa1055c1
tree6ccb3bed41c3c436cab5c8a0686246c2b2ec60e9
parentad46e2cd981eac97a3bf2a59fdb0c5c75b99571e
Inliner: use offset in xml replay

Replay needs the ability to distinguish among multiple calls to the same
callee. The IL offset of the call site can be used for this, so start
checking for it during replay.

Note there is subsequent follow-up work to ensure that we actually track
offsets for calls.

Refactor the way the ReplayPolicy gets notified of the current inline
context (and the IL offset of the call). Instead of trying to pass
this information as arguments to the factory method that creates
policies, add special notifications for this information that only the
ReplayPolicy will act upon.

Commit migrated from https://github.com/dotnet/coreclr/commit/be9d889b084099797dfcf019b2820433558dbec9
src/coreclr/src/jit/flowgraph.cpp
src/coreclr/src/jit/inline.cpp
src/coreclr/src/jit/inline.h
src/coreclr/src/jit/inlinepolicy.cpp
src/coreclr/src/jit/inlinepolicy.h