summaryrefslogtreecommitdiff
path: root/src/zap
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2017-06-02 16:40:07 -0700
committerCarol Eidt <carol.eidt@microsoft.com>2017-06-02 16:40:07 -0700
commitee44c56288f3d19271b665981d2ec32b8fa83ef6 (patch)
treefcc88d53a8669489b7cca0d2b5e13a1fcff652ea /src/zap
parent8f5d775cb4de2b3e765251106991940c09c0859e (diff)
downloadcoreclr-ee44c56288f3d19271b665981d2ec32b8fa83ef6.tar.gz
coreclr-ee44c56288f3d19271b665981d2ec32b8fa83ef6.tar.bz2
coreclr-ee44c56288f3d19271b665981d2ec32b8fa83ef6.zip
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.
Diffstat (limited to 'src/zap')
-rw-r--r--src/zap/zapper.cpp7
1 files changed, 7 insertions, 0 deletions
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