Skip to content

Commit 8fca0a1

Browse files
Don't do opportunistic ISA lightup if there are plans to run the AltJit code (dotnet#110419)
* Don't do opportunistic ISA lightup if there are plans to run the AltJit code * Ensure that we can compile in Release builds
1 parent 457114c commit 8fca0a1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/coreclr/jit/compiler.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6048,7 +6048,16 @@ int Compiler::compCompile(CORINFO_MODULE_HANDLE classPtr,
60486048
// but it requires moving the whole set of logic down into compCompileHelper after compInitOptions has
60496049
// run and we're going to end up exiting early if JIT_FLAG_ALT_JIT and opts.altJit don't match anyways
60506050

6051-
if (!info.compMatchedVM || compileFlags->IsSet(JitFlags::JIT_FLAG_ALT_JIT))
6051+
bool enableAvailableIsas = !info.compMatchedVM;
6052+
6053+
#ifdef DEBUG
6054+
if (compileFlags->IsSet(JitFlags::JIT_FLAG_ALT_JIT) && JitConfig.RunAltJitCode() == 0)
6055+
{
6056+
enableAvailableIsas = true;
6057+
}
6058+
#endif // DEBUG
6059+
6060+
if (enableAvailableIsas)
60526061
{
60536062
CORINFO_InstructionSetFlags instructionSetFlags;
60546063

0 commit comments

Comments
 (0)