You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] Wasm encoding of reading from array is unnecessarily large #134465
When encoding a load from an array of integers, the codegen is bigger than it needs to be.
What I'm seeing today is
local.get6;; Load _array from WASM templocal.get4;; Load indexi32.const2i32.shl;; Scale index * 4i32.const8i32.addi32.addi32.loadalign=1;; Load data from array, with 8 byte offset
What I'd like to see
local.get6;; Load _array from WASM templocal.get4;; Load indexi32.const2i32.shl;; Scale index * 4i32.addi32.loadoffset=8align=1;; Load data from array, with 8 byte offset
Behavior of these 2 sequences is identical, but the one below is 12 bytes, and the upper one is 15 bytes.
Activity
dotnet-policy-service commentedon Sep 22, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Sep 22, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
[wasm] [JIT] Contain Array Data Offsets (#135146)