Skip to content

Comments

[Wasm RyuJit] fix issue in RewriteLocalStackStore#124673

Open
AndyAyersMS wants to merge 3 commits intodotnet:mainfrom
AndyAyersMS:FixRewriteLocalStore
Open

[Wasm RyuJit] fix issue in RewriteLocalStackStore#124673
AndyAyersMS wants to merge 3 commits intodotnet:mainfrom
AndyAyersMS:FixRewriteLocalStore

Conversation

@AndyAyersMS
Copy link
Member

Need to capture the original type before bashing to TYP_I_IMPL.

Need to capture the original type before bashing to TYP_I_IMPL.
Copilot AI review requested due to automatic review settings February 20, 2026 20:19
@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 Feb 20, 2026
@AndyAyersMS
Copy link
Member Author

@dotnet/jit-contrib PTAL

@dotnet-policy-service
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 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 fixes a bug in the WasmRyuJit register allocator's RewriteLocalStackStore function. The function was incorrectly using the type from lclNode after it had been changed to TYP_I_IMPL, instead of preserving the original type. The fix captures the original type in a storeType variable before the type is modified.

Changes:

  • Captures the original node type before it is changed to TYP_I_IMPL
  • Uses the captured type when creating the store node, ensuring the correct type information is preserved

Copy link
Contributor

@adamperlin adamperlin left a comment

Choose a reason for hiding this comment

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

One question about the TypeIs check immediately after ChangeType

Copilot AI review requested due to automatic review settings February 21, 2026 01:37
Copy link
Contributor

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

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

Copy link
Contributor

@adamperlin adamperlin left a comment

Choose a reason for hiding this comment

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

Looks good to me!

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.

4 participants