diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/zap/zapinfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zap/zapinfo.cpp b/src/zap/zapinfo.cpp index d36d6505d7..dd49d6ab2b 100644 --- a/src/zap/zapinfo.cpp +++ b/src/zap/zapinfo.cpp @@ -445,7 +445,9 @@ void ZapInfo::CompileMethod() // Retrieve method attributes from EEJitInfo - the ZapInfo's version updates // some of the flags related to hardware intrinsics but we don't want that. DWORD methodAttribs = m_pEEJitInfo->getMethodAttribs(m_currentMethodHandle); - if (methodAttribs & CORINFO_FLG_AGGRESSIVE_OPT) + +#ifdef FEATURE_READYTORUN_COMPILER + if (IsReadyToRunCompilation() && (methodAttribs & CORINFO_FLG_AGGRESSIVE_OPT)) { // Skip methods marked with MethodImplOptions.AggressiveOptimization, they will be jitted instead. In the future, // consider letting the JIT determine whether aggressively optimized code can/should be pregenerated for the method @@ -454,6 +456,7 @@ void ZapInfo::CompileMethod() m_zapper->Info(W("Skipped because of aggressive optimization flag\n")); return; } +#endif #if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) if (methodAttribs & CORINFO_FLG_JIT_INTRINSIC) |