fitzgen opened PR #12248 from fitzgen:remove-depth-from-cost to bytecodealliance:main:
We don't have any rules that try to rebalance trees to make them shallower in the mid-end (we determined it was the wrong place to do that kind of thing, since we don't know register pressure at that point) so there is no need to track expression depth in the cost function.
<!--
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
-->
fitzgen requested cfallin for a review on PR #12248.
fitzgen requested wasmtime-compiler-reviewers for a review on PR #12248.
cfallin submitted PR review.
cfallin merged PR #12248.
Last updated: Jan 09 2026 at 13:15 UTC