Fix JIT traces for the case where a tier 1 compilation switches to MinOpts (#32928)
authorKoundinya Veluri <kouvel@users.noreply.github.com>
Fri, 28 Feb 2020 16:32:41 +0000 (11:32 -0500)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2020 16:32:41 +0000 (08:32 -0800)
Updated to clear the tier 1 flag when switching to MinOpts. Clearing the flag avoids printing "tier 1" in traces and to print more accurate information around here:
https://github.com/dotnet/runtime/blob/c727a412bf2c415bb2b94eeef0939aa07b87591c/src/coreclr/src/jit/compiler.cpp#L4044

src/coreclr/src/jit/compiler.cpp

index c6c0969..07625cd 100644 (file)
@@ -3795,6 +3795,7 @@ _SetMinOpts:
         !opts.jitFlags->IsSet(JitFlags::JIT_FLAG_MIN_OPT) && !opts.compDbgCode)
     {
         info.compCompHnd->setMethodAttribs(info.compMethodHnd, CORINFO_FLG_SWITCHED_TO_MIN_OPT);
+        opts.jitFlags->Clear(JitFlags::JIT_FLAG_TIER1);
         compSwitchedToMinOpts = true;
     }