Stream: git-wasmtime

Topic: wasmtime / PR #13688 Cranelift: Fold branch-to-trap optim...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 15:25):

fitzgen opened PR #13688 from fitzgen:branch-to-trap-in-egraph-pass to bytecodealliance:main:

The last thing that the legalization pass did was branch-to-trap optimization, where a conditional branch to a block that just unconditionally traps was replaced with a trapz or trapnz. This commit moves this optimization into the egraph pass via:

The legalizer and its filetest infrastructure is completely removed.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 15:25):

fitzgen requested cfallin for a review on PR #13688.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 15:25):

fitzgen requested wasmtime-compiler-reviewers for a review on PR #13688.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 15:25):

fitzgen requested wasmtime-core-reviewers for a review on PR #13688.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 17:09):

fitzgen updated PR #13688.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 19:12):

:thumbs_up: cfallin submitted PR review:

Looks great -- thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 19:12):

cfallin added PR #13688 Cranelift: Fold branch-to-trap optimization into the egraphs pass to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 19:37):

:check: cfallin merged PR #13688.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2026 at 19:37):

cfallin removed PR #13688 Cranelift: Fold branch-to-trap optimization into the egraphs pass from the merge queue.


Last updated: Jul 29 2026 at 05:03 UTC