jeffcharles opened PR #11935 from jeffcharles:fix-scratch-issue-with-shifts to bytecodealliance:main:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
Fixes #11868.Narrows the scope of using the general purpose scratch register and the floating point scratch register so that allocating new registers happen outside those scopes. The reason that fixes the issue is register allocation can trigger a spill if the all registers of the desired type are allocated and spilling requires a scratch register to move locals into memory.
jeffcharles requested wasmtime-compiler-reviewers for a review on PR #11935.
jeffcharles requested wasmtime-core-reviewers for a review on PR #11935.
jeffcharles requested fitzgen for a review on PR #11935.
jeffcharles commented on PR #11935:
cc @saulecabrera
github-actions[bot] commented on PR #11935:
Subscribe to Label Action
cc @saulecabrera
<details>
This issue or pull request has been labeled: "winch"Thus the following users have been cc'd because of the following labels:
- saulecabrera: winch
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
saulecabrera submitted PR review:
LGTM, thanks!
saulecabrera merged PR #11935.
Last updated: Jan 09 2026 at 13:15 UTC