Skip to content

Commit

Permalink
JIT: Don't expand virtual calls too early for minopts (dotnet#108002)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored Sep 19, 2024
1 parent 681643c commit 45afaf9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/coreclr/jit/importercalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,11 @@ var_types Compiler::impImportCall(OPCODE opcode,
call = gtNewCallNode(CT_USER_FUNC, callInfo->hMethod, callRetTyp, di);
call->gtFlags |= GTF_CALL_VIRT_VTABLE;

// Mark this method to expand the virtual call target early in fgMorphCall
call->AsCall()->SetExpandedEarly();
if (opts.OptimizationEnabled())
{
// Mark this method to expand the virtual call target early in fgMorphCall
call->AsCall()->SetExpandedEarly();
}
break;
}

Expand Down

0 comments on commit 45afaf9

Please sign in to comment.