Skip to content

Commit

Permalink
Don't do opportunistic ISA lightup if there are plans to run the AltJ…
Browse files Browse the repository at this point in the history
…it code (#110419)

* Don't do opportunistic ISA lightup if there are plans to run the AltJit code

* Ensure that we can compile in Release builds
  • Loading branch information
tannergooding authored Dec 6, 2024
1 parent 457114c commit 8fca0a1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/coreclr/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8fca0a1

Please sign in to comment.