Repository navigation
Wasm: preserve native remainder for constant divisors - #136987
Open
adamperlin wants to merge 2 commits into
Open
adamperlin wants to merge 2 commits into
adamperlin wants to merge 2 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 5 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
adamperlin
marked this pull request as draft
November 5, 2026 00:24
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
adamperlin
marked this pull request as ready for review
November 5, 2026 01:06
JulieLeeMSFT
approved these changes
Nov 5, 2026
AndyAyersMS
approved these changes
Nov 9, 2026
lewing
approved these changes
Nov 24, 2026
Open
3 tasks
3 tasks
Contributor
Author
|
I believe the failure is a newly exposed bug, I'm going to prepare a separate fix before merging this. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve native Wasm remainder instead of expanding constant signed remainder to SUB/MUL/DIV. Other targets and power-of-two optimizations are unchanged.
Add integer boundary tests and WASM disassembly checks, with a comment explaining the current manual SuperFileCheck requirement.
Validated with a Checked Wasm JIT build, remainder tests, and manual SuperFileCheck checks. SuperPMI asmdiffs covered 29,068 contexts: 43 size improvements, no size regressions, and 570 bytes saved. Remainder tests are passing using a browser-wasm core root.
Resolves #135982
Note
Prepared with GitHub Copilot.