summaryrefslogtreecommitdiff
path: root/src/jit
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-10-17 16:28:29 -0700
committerGitHub <noreply@github.com>2018-10-17 16:28:29 -0700
commitff467045bc24fcf890ca6f1b58c647cc44b013bd (patch)
treead75e007a4c0669829a3ce3b3c6e13a35c252fdf /src/jit
parent2ac658f8df5ba07b68e1d06482089ca49ac83fc3 (diff)
downloadcoreclr-ff467045bc24fcf890ca6f1b58c647cc44b013bd.tar.gz
coreclr-ff467045bc24fcf890ca6f1b58c647cc44b013bd.tar.bz2
coreclr-ff467045bc24fcf890ca6f1b58c647cc44b013bd.zip
Print Tier-0 or Tier-1 to JIT dump output (#20453)
* Print Tier-0 or Tier-1 to JIT dump output Make it very obvious we've been asked to generate Tier-0 code. * Print Tier-0 or Tier-1 in assembly output, as appropriate
Diffstat (limited to 'src/jit')
-rw-r--r--src/jit/codegencommon.cpp9
-rw-r--r--src/jit/compiler.cpp12
2 files changed, 21 insertions, 0 deletions
diff --git a/src/jit/codegencommon.cpp b/src/jit/codegencommon.cpp
index 2a9b5e3719..4d908dafc4 100644
--- a/src/jit/codegencommon.cpp
+++ b/src/jit/codegencommon.cpp
@@ -2276,6 +2276,15 @@ void CodeGen::genGenerateCode(void** codePtr, ULONG* nativeSizeOfCode)
printf("\n");
+ if (compiler->opts.jitFlags->IsSet(JitFlags::JIT_FLAG_TIER0))
+ {
+ printf("; Tier-0 compilation\n");
+ }
+ if (compiler->opts.jitFlags->IsSet(JitFlags::JIT_FLAG_TIER1))
+ {
+ printf("; Tier-1 compilation\n");
+ }
+
if ((compiler->opts.compFlags & CLFLG_MAXOPT) == CLFLG_MAXOPT)
{
printf("; optimized code\n");
diff --git a/src/jit/compiler.cpp b/src/jit/compiler.cpp
index c9b7bb95f8..e11d11f58b 100644
--- a/src/jit/compiler.cpp
+++ b/src/jit/compiler.cpp
@@ -3661,6 +3661,18 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
if (verbose)
{
+ // If we are compiling for a specific tier, make that very obvious in the output.
+ // Note that we don't expect multiple TIER flags to be set at one time, but there
+ // is nothing preventing that.
+ if (jitFlags->IsSet(JitFlags::JIT_FLAG_TIER0))
+ {
+ printf("OPTIONS: Tier-0 compilation (set COMPlus_TieredCompilation=0 to disable)\n");
+ }
+ if (jitFlags->IsSet(JitFlags::JIT_FLAG_TIER1))
+ {
+ printf("OPTIONS: Tier-1 compilation\n");
+ }
+
printf("OPTIONS: compCodeOpt = %s\n",
(opts.compCodeOpt == BLENDED_CODE)
? "BLENDED_CODE"