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
Here var0 never changes, and the field field2 is immutable, so the struct.get could be hoisted outside of the loop and the field would be loaded only once, instead of in each iteration. I wanted to see if -O4 does this.
Ah, then -O4 does not do that either. We do have an licm pass, but it is disabled by default in all modes (since it tends to increase code size, and VMs do licm themselves anyhow). But you can experiment with it by adding --licm
wasm-opt crashes when I try to optimize the Wasm file in the zip file (attached):
I'm trying with the current
main
branch (320867a):Update: it also happens with wasm-opt version 119 (93883fd).
test.wasm.zip
The text was updated successfully, but these errors were encountered: