Skip to content

JIT: Indicate usage of TYP_LONG for x86 in async transformation - #121746

Merged
jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:fix-120341
Nov 19, 2025
Merged

jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:fix-120341

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

Also fix the name for the async continuation parameter; it was showing up as "tmp-1" since a recent change to compMap2ILvarNum.

Fix #120341

@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 18, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jakobbotsch
jakobbotsch marked this pull request as ready for review November 18, 2025 17:05
Copilot AI review requested due to automatic review settings November 18, 2025 17:05
@jakobbotsch

Copy link
Copy Markdown
Member Author

PTAL @dotnet/jit-contrib

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes two issues related to async method transformations in the JIT:

  • Corrects the display name for the async continuation parameter from "tmp-1" to "AsyncCont"
  • Ensures the JIT backend is aware of TYP_LONG usage introduced during async transformations for proper decomposition on x86

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/coreclr/jit/gentree.cpp Moves the AsyncCont name check to the correct location where compMap2ILvarNum returns UNKNOWN_ILNUM
src/coreclr/jit/async.cpp Sets compLongUsed flag when TYP_LONG variables are encountered during continuation layout

@jakobbotsch

Copy link
Copy Markdown
Member Author

/ba-g macOS brownout

@jakobbotsch
jakobbotsch merged commit 96765f3 into dotnet:main Nov 19, 2025
@jakobbotsch
jakobbotsch deleted the fix-120341 branch November 19, 2025 12:04
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RuntimeAync] Assert in LSRA on x86

4 participants