Skip to content

[Wasm RyuJIT] Fixes for two codegen asserts#126514

Open
kg wants to merge 11 commits intodotnet:mainfrom
kg:wasm-emit-nyi
Open

[Wasm RyuJIT] Fixes for two codegen asserts#126514
kg wants to merge 11 commits intodotnet:mainfrom
kg:wasm-emit-nyi

Conversation

@kg
Copy link
Copy Markdown
Member

@kg kg commented Apr 3, 2026

Fixes BitConverter.ToBFloat16 and Vector`1.op_Multiply

@kg kg added the arch-wasm WebAssembly architecture label Apr 3, 2026
Copilot AI review requested due to automatic review settings April 3, 2026 20:14
@kg kg added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 3, 2026
@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.

Copy link
Copy Markdown
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

Fixes two WebAssembly RyuJIT codegen assertion failures by handling edge cases around struct locals whose effective “register type” is not directly representable as TYP_STRUCT in wasm codegen.

Changes:

  • Ignore leftover GT_LCL_VAR nodes whose computed register type is TYP_UNDEF when they are marked as IsUnusedValue() (e.g., after block-store pruning in LIR).
  • Ensure GT_STORE_LCL_VAR for enregistered struct locals uses the struct layout’s register type when determining the local.set operand size.

@kg kg marked this pull request as ready for review April 3, 2026 21:49
@kg
Copy link
Copy Markdown
Member Author

kg commented Apr 3, 2026

@dotnet/jit-contrib PTAL

Copilot AI review requested due to automatic review settings April 3, 2026 23:22
Copy link
Copy Markdown
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 2 out of 2 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings April 8, 2026 23:18
@kg kg force-pushed the wasm-emit-nyi branch from 2126523 to 50cde09 Compare April 8, 2026 23:18
@kg kg marked this pull request as ready for review April 8, 2026 23:21
Copy link
Copy Markdown
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 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings April 10, 2026 20:15
Copy link
Copy Markdown
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 2 out of 2 changed files in this pull request and generated 2 comments.

Copy link
Copy Markdown
Member

@jakobbotsch jakobbotsch left a comment

Choose a reason for hiding this comment

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

LGTM with some minor comments

Copilot AI review requested due to automatic review settings April 12, 2026 22:35
@kg kg force-pushed the wasm-emit-nyi branch from 36c9866 to 422a942 Compare April 12, 2026 22:35
Copy link
Copy Markdown
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 2 out of 2 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture 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