* 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
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");
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"