From 4e4e28cfc2455f0a10a20a424e5e1386bbfe0c00 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Mon, 29 Jun 2026 17:38:31 +0200 Subject: [PATCH] Enable tiering for async versions --- src/coreclr/vm/method.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/vm/method.cpp b/src/coreclr/vm/method.cpp index a71ea6efd1a0c2..e6b95c9086fb09 100644 --- a/src/coreclr/vm/method.cpp +++ b/src/coreclr/vm/method.cpp @@ -3170,8 +3170,8 @@ bool MethodDesc::DetermineAndSetIsEligibleForTieredCompilation() // Functions with NoOptimization or AggressiveOptimization don't participate in tiering !IsJitOptimizationLevelRequested() && - // Tiering the async thunk methods is not supported currently - !IsAsyncThunkMethod() && + // We tier async versions, but not task-returning wrapper thunks + (!IsAsyncThunkMethod() || SupportsAsyncVersionCodegen()) && // Tiering P/Invoke methods is not supported currently !IsPInvoke()