Stream: git-wasmtime

Topic: wasmtime / PR #15269 fix: Cranelift: egraph: performance:...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:30):

xixi-box opened PR #15269 from xixi-box:fix/issue-15264-68f6475-c0075eaa to bytecodealliance:main:

Fixes #15264

Root cause: Egraph elaboration sinks the running sum to its final use, keeping call results live across subsequent calls and causing quadratic register allocation work.

<!-- oss-scout-job:job-4662e4ff-fcf3-4df0-a0a9-c0075eaa5d06 -->

Tests: cargo run -p cranelift-tools --bin clif-util -- test -v cranelift/filetests/filetests/egraph/running-sum.clif (fails on base; passes with this patch).
Regression coverage: cranelift/filetests/filetests/egraph/running-sum.clif.

AI assistance: Codex helped implement and test this change. oss-scout independently replayed the regression before opening this PR.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:30):

xixi-box removed the review request for wasmtime-compiler-reviewers from PR #15269.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:30):

xixi-box requested wasmtime-compiler-reviewers for a review on PR #15269.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:30):

xixi-box requested cfallin for a review on PR #15269.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 21:44):

github-actions[bot] added the label cranelift on PR #15269.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 15 2026 at 11:04):

xixi-box commented on PR #15269:

The Test Linux x86_64 (wasmtime-cli-other) failure is a systematic expectation drift, not flakiness: all 276 failing tests are disas golden-file tests (tests/disas/**, mostly load-store and gc) whose expected CLIF no longer matches because place_early now sinks pure instructions to just after their latest operand (e.g. array-fill-anyref gains v14 = uextend.i64 v3 before trapz in block0).

That is the intended effect of the fix (shortening operand live ranges changes scheduling), so the expectations need regeneration rather than code changes:

WASMTIME_TEST_BLESS=1 cargo test -p wasmtime-cli --test disas

I have not pushed the blessed output yet — with a change that broad it is probably worth a maintainer call first: if the reordering is acceptable, I will follow up with the regenerated files in a second commit; if some reordering is undesirable (e.g. instructions sinking past bounds checks), that would need refinement in place_early instead.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 23:43):

cfallin commented on PR #15269:

Thanks. I don't think we will take this PR, for several reasons:

For all these reasons I am going to close this PR, but please feel free to discuss with us at a Cranelift project meeting if you want to further pursue work on the egraph implementation. Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 23:43):

:cross_mark: cfallin closed without merge PR #15269.


Last updated: Nov 19 2026 at 20:05 UTC