Nice when a correctness fix makes things faster:
https://github.com/emscripten-core/emscripten/pull/26478
Unsafe pointer casts usually trap in wasm, but as an option they can be "emulated" to work like in native builds. This PR fixes a bug *and* makes things 2x speedier 🚀

link: run fpcast-emu before optimization passes by thiblahute · Pull Request #26478 · emscripten-core/emscripten
Move the --fpcast-emu binaryen pass earlier in the pass pipeline so it runs before -O2. Previously, directize (part of -O2) would see type-mismatched call_indirect entries and replace them with unr...


