-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[wasm][AOT] fix codegen for small structs on stack #118355
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
Conversation
Tagging subscribers to 'arch-wasm': @lewing |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job finding this
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment was marked as outdated.
This comment was marked as outdated.
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Co-authored-by: Larry Ewing <[email protected]>
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this 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 codegen issues for small structs on the WebAssembly stack in AOT compilation. The changes address how empty structs and scalar value types are handled in the WASM backend.
Key changes:
- Simplifies a conditional expression by removing redundant parentheses
- Updates empty struct handling to use
sbyte
instead ofint32
as the element type - Adds an assertion to ensure the element type is properly set
/backport to release/9.0-staging |
Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/16762797568 |
Fixes #117169