Skip to content

Commit 4ee646e

Browse files
committed
Make JitOptimizeAwait not a release switch.
1 parent f21eb18 commit 4ee646e

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
@@ -9099,7 +9099,11 @@ void Compiler::impImportBlockCode(BasicBlock* block)
90999099
// that control the flow of sync context.
91009100
// We do not have that yet.
91019101
int configVal = -1; // -1 not configured, 0/1 configured to false/true
9102+
#ifdef DEBUG
91029103
if (compIsAsync() && JitConfig.JitOptimizeAwait())
9104+
#else
9105+
if (compIsAsync())
9106+
#endif
91039107
{
91049108
if (impMatchTaskAwaitPattern(codeAddr, codeEndp, &configVal))
91059109
{

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)