Inliner: capture profit model estimate during replay
authorAndy Ayers <andya@microsoft.com>
Fri, 15 Jul 2016 20:06:44 +0000 (13:06 -0700)
committerAndy Ayers <andya@microsoft.com>
Fri, 15 Jul 2016 20:06:44 +0000 (13:06 -0700)
When using ReplayPolicy and dumping data, capture the profitability
estimate made by the ModelPolicy, so we can more easily cross-validate
it against externally measured profitability.

Commit migrated from https://github.com/dotnet/coreclr/commit/10af6af8d2254f3ce8a4f4050bac29c7e5b13de1

src/coreclr/src/jit/inlinepolicy.cpp

index eee337e..b3ec841 100644 (file)
@@ -2685,12 +2685,13 @@ void ReplayPolicy::DetermineProfitability(CORINFO_METHOD_INFO* methodInfo)
     }
 
     // If we're also dumping inline data, make additional observations
-    // based on the method info, and estimate code size, so that the
-    // reports have the necessary data.
+    // based on the method info, and estimate code size and perf
+    // impact, so that the reports have the necessary data.
     if (JitConfig.JitInlineDumpData() != 0)
     {
         MethodInfoObservations(methodInfo);
         EstimateCodeSize();
+        EstimatePerformanceImpact();
         m_IsForceInline = m_WasForceInline;
     }