From 3222daf774ac9a79bb8bfe29f47ec96b493c0945 Mon Sep 17 00:00:00 2001 From: Brian Sullivan Date: Fri, 24 Mar 2017 16:29:27 -0700 Subject: [PATCH] Change the Jit Disasm message when we have profile date to include information about the edge weights and the value of fgCalledCount. Example: ; with IBC profile data, edge weights are valid, and fgCalledCount is 145 Commit migrated from https://github.com/dotnet/coreclr/commit/99e2889af4e7ff9bba4fb8cd920a5bcba9407370 --- src/coreclr/src/jit/codegencommon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/src/jit/codegencommon.cpp b/src/coreclr/src/jit/codegencommon.cpp index 06da545..71d27be 100644 --- a/src/coreclr/src/jit/codegencommon.cpp +++ b/src/coreclr/src/jit/codegencommon.cpp @@ -2981,7 +2981,8 @@ void CodeGen::genGenerateCode(void** codePtr, ULONG* nativeSizeOfCode) if (compiler->fgHaveProfileData()) { - printf("; with IBC profile data\n"); + printf("; with IBC profile data, edge weights are %s, and fgCalledCount is %u\n", + compiler->fgHaveValidEdgeWeights ? "valid" : "invalid", compiler->fgCalledCount); } if (compiler->fgProfileData_ILSizeMismatch) -- 2.7.4