Stream: git-wasmtime

Topic: wasmtime / issue #1116 Extend constant pools to support f...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 26 2026 at 16:35):

fitzgen closed issue #1116:

As of today, there's a concept of constant pools in Cranelift, that works for SIMD 128-bits values. I'd like to extend it to work also for float32 and float64 values, to avoid the need for the bitcast, which I'm sure is pretty terrible performance-wise (and doesn't help register allocation either, since it requires one GPR register with a very short lifetime).

My current plan is the following:

Aligning the constant pool values would be nice to have but not required at this point; it would just be a performance fault on x86.

@abrown Does it sound reasonable to you?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 26 2026 at 16:35):

fitzgen commented on issue #1116:

I don't think this is an issue anymore, the constant pool supports arbitrary constant data. If there are particular lowerings we want to discuss, we can file more-targeted issues for them.


Last updated: Apr 12 2026 at 23:10 UTC