alexcrichton opened PR #13346 from alexcrichton:riscv64-out-of-line-traps to bytecodealliance:main:
This commit leverages the
MachBuffer::defer_trapfunction to optimize the codegen ofTrapIfand defer the trapping instruction to the end of a function to keep the jump-around outside of the main body. This is similar to what other backends do, for example.<!--
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
-->
alexcrichton requested cfallin for a review on PR #13346.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #13346.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13346.
github-actions[bot] added the label cranelift on PR #13346.
:cross_mark: alexcrichton closed without merge PR #13346.
alexcrichton commented on PR #13346:
Looks like this isn't possible due to https://github.com/bytecodealliance/wasmtime/issues/12968
cfallin commented on PR #13346:
Ah, that's too bad -- I hope to address that issue when I get time and then I guess we should revisit this...
alexcrichton commented on PR #13346:
No rush or urgency of course, this was just something I noticed when poking around https://github.com/bytecodealliance/wasmtime/pull/13347
Last updated: Jun 01 2026 at 09:49 UTC