Change the Jit Disasm message when we have profile date to include
authorBrian Sullivan <briansul@microsoft.com>
Fri, 24 Mar 2017 23:29:27 +0000 (16:29 -0700)
committerBrian Sullivan <briansul@microsoft.com>
Sat, 25 Mar 2017 01:38:33 +0000 (18:38 -0700)
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

index 06da545..71d27be 100644 (file)
@@ -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)