Stream: git-wasmtime

Topic: wasmtime / issue #12156 Cranelift: improve egraph cost fu...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2025 at 19:11):

fitzgen opened issue #12156:

Note: I am forking off a new issue from https://github.com/bytecodealliance/wasmtime/issues/12106. See that issue's discussion for a description of the issue of enode cost saturating to infinity due to extraction not "understanding" shared structure and how this problem is equivalent to weighted-set cover and therefore NP-hard. +cc @cfallin @bongjunj

Chris and I were talking about extraction again yesterday. A couple things came out of it, which I will note down for our future selves and posterity:

[^typical]: Typically n is fairly small; it is affected by how much we created new instructions and spliced their definitions into the middle of the DFG after the CLIF-producer gave us the initial CLIF. That is something we generally don't do a ton of, except in our legalization pass and NaN canonicalization and neither of them do it too much.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2025 at 19:11):

fitzgen added the cranelift label to Issue #12156.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2025 at 19:11):

fitzgen added the cranelift:goal:optimize-speed label to Issue #12156.


Last updated: Dec 13 2025 at 19:03 UTC