Stream: git-wasmtime

Topic: wasmtime / issue #15278 Cranelift: inlining `interrupt_po...


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

alexcrichton opened issue #15278:

This input:

test inline
target x86_64

function %poll_callee(i64, i64, i64) -> i64 tail {
block0(v0: i64, v1: i64, v2: i64):
    v4 = interrupt_poll v1, v2, user3
    return v4
}

function %poll_caller(i64, i64, i64) -> i64 system_v {
    fn0 = %poll_callee(i64, i64, i64) -> i64 tail
block0(v0: i64, v1: i64, v2: i64):
    v4 = call fn0(v0, v1, v2)
    return v4
}

fails with:

$ clif-util test inline.clif
FAIL inline.clif: inline

Caused by:
    0: CLIF verification error after inlining
    ...
       ; error: inst2 (v6 = interrupt_poll.i64 v1, v2, user3): `interrupt_poll` requires the `tail` calling convention

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

alexcrichton added the bug label to Issue #15278.

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

alexcrichton added the cranelift label to Issue #15278.

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

cfallin commented on issue #15278:

cc @erikrose, can you address? It looks like we'll need to forbid inlining of interrupt_poll when the function inlined-into does not have a tail ABI.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 22:57):

erikrose commented on issue #15278:

Yes!


Last updated: Nov 19 2026 at 20:05 UTC