fitzgen opened PR #15258 from fitzgen:issue-5783-generalized-souper-opts to bytecodealliance:main:
Add a bunch of mid-end ISLE optimizations whose left-hand sides were harvested from
spidermonkey.wasm, right-hand sides synthesized by Souper, and then some of them were additionally generalized by Hydra.This skips the
icmp-related rules from that issue, as they introduced redundant computations since they optimized away values that were reused elsewhere, and so they just became partially computed twice, and our egraph rewrites / extraction doesn't reason about reuse. (This redundancy resulted in some minor code pessimizations and slowdowns on Sightglass.)No statistically significant changes on Sightglass.
Fixes #5783
WIP: drop icmp rules that pessimize shared shifts and masks
<!--
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 review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
fitzgen requested wasmtime-compiler-reviewers for a review on PR #15258.
fitzgen requested cfallin for a review on PR #15258.
fitzgen requested wasmtime-core-reviewers for a review on PR #15258.
fitzgen updated PR #15258.
fitzgen removed the review request for wasmtime-compiler-reviewers from PR #15258.
fitzgen edited PR #15258:
Add a bunch of mid-end ISLE optimizations whose left-hand sides were harvested from
spidermonkey.wasm, right-hand sides synthesized by Souper, and then some of them were additionally generalized by Hydra.This skips the
icmp-related rules from that issue, as they introduced redundant computations since they optimized away values that were reused elsewhere, and so they just became partially computed twice, and our egraph rewrites / extraction doesn't reason about reuse. (This redundancy resulted in some minor code pessimizations and slowdowns on Sightglass.)No statistically significant changes on Sightglass.
Fixes #5783
github-actions[bot] added the label cranelift on PR #15258.
github-actions[bot] added the label isle on PR #15258.
github-actions[bot] commented on PR #15258:
Subscribe to Label Action
cc @avanhatt, @cfallin, @fitzgen, @mmcloughlin
<details>
This issue or pull request has been labeled: "cranelift", "isle"Thus the following users have been cc'd because of the following labels:
- avanhatt: isle
- cfallin: isle
- fitzgen: isle
- mmcloughlin: isle
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
:thumbs_up: cfallin submitted PR review:
Thanks!
cfallin added PR #15258 Add Souper-synthesized mid-end ISLE optimizations to the merge queue.
:check: cfallin merged PR #15258.
cfallin removed PR #15258 Add Souper-synthesized mid-end ISLE optimizations from the merge queue.
Last updated: Nov 19 2026 at 20:05 UTC