Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
JIT: Zero continuation return after profiler leave callback
  • Loading branch information
jakobbotsch committed Dec 12, 2025
commit e208c468665422f80fb2263ec542b34d5563fbad
10 changes: 5 additions & 5 deletions src/coreclr/jit/codegencommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7069,11 +7069,6 @@ void CodeGen::genReturn(GenTree* treeNode)
}
}

if (treeNode->OperIs(GT_RETURN) && compiler->compIsAsync())
{
instGen_Set_Reg_To_Zero(EA_PTRSIZE, REG_ASYNC_CONTINUATION_RET);
}

#if EMIT_GENERATE_GCINFO
if (treeNode->OperIs(GT_RETURN, GT_SWIFT_ERROR_RET))
{
Expand All @@ -7097,6 +7092,11 @@ void CodeGen::genReturn(GenTree* treeNode)
}
#endif // PROFILING_SUPPORTED

if (treeNode->OperIs(GT_RETURN) && compiler->compIsAsync())
{
instGen_Set_Reg_To_Zero(EA_PTRSIZE, REG_ASYNC_CONTINUATION_RET);
}

#if defined(DEBUG) && defined(TARGET_XARCH)
bool doStackPointerCheck = compiler->opts.compStackCheckOnRet;

Expand Down