Skip to content

JIT: Avoid VN-based removal of dead byref store in async funcs #116136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

jakobbotsch
Copy link
Member

Fix #116090

@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 May 30, 2025
Copy link
Contributor

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

Copy link
Contributor

@Copilot Copilot AI left a comment

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 prevents the VN-based dead-store removal phase from incorrectly removing stores to byref or GC-byref locals in async methods, addressing issue #116090.

  • Adds a check to skip dead-store removal for byref or GC-byref locals when compiling an async method.
  • Ensures that stores crossing suspension points are preserved.

@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @EgorBo

@jakobbotsch jakobbotsch requested a review from EgorBo May 30, 2025 20:24
@jakobbotsch
Copy link
Member Author

Ping @EgorBo

@jakobbotsch jakobbotsch merged commit bf80e0e into dotnet:main Jun 3, 2025
110 checks passed
@jakobbotsch jakobbotsch deleted the fix-116090 branch June 3, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

JIT: Byref store after suspension-point removed in runtime async
2 participants