From ee44c56288f3d19271b665981d2ec32b8fa83ef6 Mon Sep 17 00:00:00 2001 From: Carol Eidt Date: Fri, 2 Jun 2017 16:40:07 -0700 Subject: Support COMPlus_JITMinOpts for crossgen In order to better enable throughput measurement and analysis, we would like to be able to specify COMPlus_JITMinOpts with crossgen. --- src/zap/zapper.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/zap/zapper.cpp') diff --git a/src/zap/zapper.cpp b/src/zap/zapper.cpp index 6b45bc27f6..38206b61d0 100644 --- a/src/zap/zapper.cpp +++ b/src/zap/zapper.cpp @@ -1377,6 +1377,13 @@ void Zapper::InitializeCompilerFlags(CORCOMPILE_VERSION_INFO * pVersionInfo) if (pVersionInfo->wCodegenFlags & CORCOMPILE_CODEGEN_PROF_INSTRUMENTING) m_pOpt->m_compilerFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_BBINSTR); + // Set CORJIT_FLAG_MIN_OPT only if COMPlus_JitMinOpts == 1 + static ConfigDWORD g_jitMinOpts; + if (g_jitMinOpts.val_DontUse_(CLRConfig::UNSUPPORTED_JITMinOpts, 0) == 1) + { + m_pOpt->m_compilerFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_MIN_OPT); + } + #if defined(_TARGET_X86_) // @TODO: This is a copy of SetCpuInfo() in vm\codeman.cpp. Unify the implementaion -- cgit v1.2.3