Stream: git-wasmtime

Topic: wasmtime / PR #13912 Cranelift: reuse the regalloc2::Ctx ...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:14):

fitzgen opened PR #13912 from fitzgen:reuse-regalloc2-ctx to bytecodealliance:main:

Store the regalloc2::Ctx in cranelift_codegen::Context and thread it through TargetIsa::compile_function down to regalloc2::run_with_ctx, instead of letting regalloc2::run allocate a fresh Ctx per function. The regalloc2::Ctx is then reused automatically as the cranelift_codegen::Context is reused by Wasmtime (which pools them across compilation threads).

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:14):

fitzgen requested wasmtime-compiler-s390x-reviewers for a review on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:14):

fitzgen requested wasmtime-compiler-reviewers for a review on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:14):

fitzgen requested cfallin for a review on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:14):

fitzgen requested alexcrichton for a review on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:14):

fitzgen requested wasmtime-default-reviewers for a review on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:21):

fitzgen updated PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2026 at 23:22):

fitzgen updated PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 00:31):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 00:31):

:speech_balloon: alexcrichton created PR review comment:

This output has a fair number of Vecs and such in it which would probably benefit from reuse as well -- could the API be changed here to leave the output in-place?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 02:34):

github-actions[bot] added the label cranelift:area:machinst on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 02:34):

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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 02:34):

github-actions[bot] added the label cranelift:area:aarch64 on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 02:34):

github-actions[bot] added the label cranelift:area:x64 on PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 15:53):

:memo: fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 15:53):

:speech_balloon: fitzgen created PR review comment:

I'll look into this in a follow up

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 15:53):

fitzgen added PR #13912 Cranelift: reuse the regalloc2::Ctx across function compilations to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 15:56):

:thumbs_up: cfallin submitted PR review.

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

github-merge-queue[bot] removed PR #13912 Cranelift: reuse the regalloc2::Ctx across function compilations from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 16:22):

fitzgen added PR #13912 Cranelift: reuse the regalloc2::Ctx across function compilations to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 16:46):

:check: fitzgen merged PR #13912.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 16:46):

fitzgen removed PR #13912 Cranelift: reuse the regalloc2::Ctx across function compilations from the merge queue.


Last updated: Jul 29 2026 at 05:03 UTC