diff --git a/src/coreclr/jit/compiler.cpp b/src/coreclr/jit/compiler.cpp index 397c2bfed103d..f4d25de557f0e 100644 --- a/src/coreclr/jit/compiler.cpp +++ b/src/coreclr/jit/compiler.cpp @@ -6048,7 +6048,16 @@ int Compiler::compCompile(CORINFO_MODULE_HANDLE classPtr, // but it requires moving the whole set of logic down into compCompileHelper after compInitOptions has // run and we're going to end up exiting early if JIT_FLAG_ALT_JIT and opts.altJit don't match anyways - if (!info.compMatchedVM || compileFlags->IsSet(JitFlags::JIT_FLAG_ALT_JIT)) + bool enableAvailableIsas = !info.compMatchedVM; + +#ifdef DEBUG + if (compileFlags->IsSet(JitFlags::JIT_FLAG_ALT_JIT) && JitConfig.RunAltJitCode() == 0) + { + enableAvailableIsas = true; + } +#endif // DEBUG + + if (enableAvailableIsas) { CORINFO_InstructionSetFlags instructionSetFlags;