Skip to content

Commit

Permalink
Expose DOTNET_JitNoInline in Release (dotnet#101798)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored and michaelgsharp committed May 8, 2024
1 parent 20f2fab commit 0212dc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/coreclr/jit/importercalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8575,13 +8575,11 @@ void Compiler::impCheckCanInline(GenTreeCall* call,
CORINFO_METHOD_HANDLE ftn = pParam->fncHandle;
InlineResult* const inlineResult = pParam->result;

#ifdef DEBUG
if (JitConfig.JitNoInline())
{
inlineResult->NoteFatal(InlineObservation::CALLEE_IS_JIT_NOINLINE);
return;
}
#endif

JITDUMP("\nCheckCanInline: fetching method info for inline candidate %s -- context %p\n",
compiler->eeGetMethodName(ftn), compiler->dspPtr(pParam->exactContextHnd));
Expand Down
4 changes: 3 additions & 1 deletion src/coreclr/jit/jitconfigvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ CONFIG_INTEGER(JitNoForceFallback, W("JitNoForceFallback"), 0) // Set to non-zer
// flags.
CONFIG_INTEGER(JitNoForwardSub, W("JitNoForwardSub"), 0) // Disables forward sub
CONFIG_INTEGER(JitNoHoist, W("JitNoHoist"), 0)
CONFIG_INTEGER(JitNoInline, W("JitNoInline"), 0) // Disables inlining of all methods
CONFIG_INTEGER(JitNoMemoryBarriers, W("JitNoMemoryBarriers"), 0) // If 1, don't generate memory barriers
CONFIG_INTEGER(JitNoStructPromotion, W("JitNoStructPromotion"), 0) // Disables struct promotion 1 - for all, 2 - for
// params.
Expand Down Expand Up @@ -358,6 +357,9 @@ RELEASE_CONFIG_INTEGER(EnableEHWriteThru, W("EnableEHWriteThru"), 1)
// Enable the enregistration of locals that are defined or used in a multireg context.
RELEASE_CONFIG_INTEGER(EnableMultiRegLocals, W("EnableMultiRegLocals"), 1)

// Disables inlining of all methods
RELEASE_CONFIG_INTEGER(JitNoInline, W("JitNoInline"), 0)

// Enable EVEX encoding for SIMD instructions when AVX-512VL is available.
CONFIG_INTEGER(JitStressEvexEncoding, W("JitStressEvexEncoding"), 0)

Expand Down

0 comments on commit 0212dc4

Please sign in to comment.