Skip to content

Commit 0212dc4

Browse files
EgorBomichaelgsharp
authored andcommitted
Expose DOTNET_JitNoInline in Release (dotnet#101798)
1 parent 20f2fab commit 0212dc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/coreclr/jit/importercalls.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8575,13 +8575,11 @@ void Compiler::impCheckCanInline(GenTreeCall* call,
85758575
CORINFO_METHOD_HANDLE ftn = pParam->fncHandle;
85768576
InlineResult* const inlineResult = pParam->result;
85778577

8578-
#ifdef DEBUG
85798578
if (JitConfig.JitNoInline())
85808579
{
85818580
inlineResult->NoteFatal(InlineObservation::CALLEE_IS_JIT_NOINLINE);
85828581
return;
85838582
}
8584-
#endif
85858583

85868584
JITDUMP("\nCheckCanInline: fetching method info for inline candidate %s -- context %p\n",
85878585
compiler->eeGetMethodName(ftn), compiler->dspPtr(pParam->exactContextHnd));

src/coreclr/jit/jitconfigvalues.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ CONFIG_INTEGER(JitNoForceFallback, W("JitNoForceFallback"), 0) // Set to non-zer
138138
// flags.
139139
CONFIG_INTEGER(JitNoForwardSub, W("JitNoForwardSub"), 0) // Disables forward sub
140140
CONFIG_INTEGER(JitNoHoist, W("JitNoHoist"), 0)
141-
CONFIG_INTEGER(JitNoInline, W("JitNoInline"), 0) // Disables inlining of all methods
142141
CONFIG_INTEGER(JitNoMemoryBarriers, W("JitNoMemoryBarriers"), 0) // If 1, don't generate memory barriers
143142
CONFIG_INTEGER(JitNoStructPromotion, W("JitNoStructPromotion"), 0) // Disables struct promotion 1 - for all, 2 - for
144143
// params.
@@ -358,6 +357,9 @@ RELEASE_CONFIG_INTEGER(EnableEHWriteThru, W("EnableEHWriteThru"), 1)
358357
// Enable the enregistration of locals that are defined or used in a multireg context.
359358
RELEASE_CONFIG_INTEGER(EnableMultiRegLocals, W("EnableMultiRegLocals"), 1)
360359

360+
// Disables inlining of all methods
361+
RELEASE_CONFIG_INTEGER(JitNoInline, W("JitNoInline"), 0)
362+
361363
// Enable EVEX encoding for SIMD instructions when AVX-512VL is available.
362364
CONFIG_INTEGER(JitStressEvexEncoding, W("JitStressEvexEncoding"), 0)
363365

0 commit comments

Comments
 (0)