Skip to content

Commit 516ec66

Browse files
authored
Make JitOptimizeAwait not a release switch. (#117574)
1 parent 6a19342 commit 516ec66

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/coreclr/jit/importer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9094,7 +9094,11 @@ void Compiler::impImportBlockCode(BasicBlock* block)
90949094
{
90959095
bool isAwait = false;
90969096
int configVal = -1; // -1 not configured, 0/1 configured to false/true
9097+
#ifdef DEBUG
90979098
if (compIsAsync() && JitConfig.JitOptimizeAwait())
9099+
#else
9100+
if (compIsAsync())
9101+
#endif
90989102
{
90999103
if (impMatchTaskAwaitPattern(codeAddr, codeEndp, &configVal))
91009104
{

src/coreclr/jit/jitconfigvalues.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ OPT_CONFIG_INTEGER(JitDoIfConversion, "JitDoIfConversion", 1)
584584
OPT_CONFIG_INTEGER(JitDoOptimizeMaskConversions, "JitDoOptimizeMaskConversions", 1) // Perform optimization of mask
585585
// conversions
586586

587-
RELEASE_CONFIG_INTEGER(JitOptimizeAwait, "JitOptimizeAwait", 1) // Perform optimization of Await intrinsics
587+
OPT_CONFIG_INTEGER(JitOptimizeAwait, "JitOptimizeAwait", 1) // Perform optimization of Await intrinsics
588588

589589
RELEASE_CONFIG_INTEGER(JitEnableOptRepeat, "JitEnableOptRepeat", 1) // If zero, do not allow JitOptRepeat
590590
RELEASE_CONFIG_METHODSET(JitOptRepeat, "JitOptRepeat") // Runs optimizer multiple times on specified methods

0 commit comments

Comments
 (0)