Stream: git-wasmtime

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


view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2021 at 20:35):

bjorn3 commented on Issue #1116:

The new backend framework supports this, right?

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2021 at 20:47):

cfallin commented on Issue #1116:

Yes, the new x64 backend supports constant pools, and uses them at least for 128-bit vector values. It looks like right now we load literal values into integer registers and then move to XMM registers to load 32/64-bit floats, but we could pretty easily change that (using the XmmLoadConst VCode instruction) if we wanted to.

I think we can leave this open to track an evaluation of whether this makes sense to do, though I suspect it's not too important for most code's performance; the exception would be if we have a lot of duplicated constants and dedup'ing gives a meaningful reduction in code size / icache misses.


Last updated: Nov 22 2024 at 17:03 UTC