wasm-opt crashes when I try to optimize the Wasm file in the zip file (attached):
$ wasm-opt -g --all-features --closed-world --traps-never-happen --type-unfinalizing -Os --type-ssa --gufa -Os --type-merging -O4 --type-finalizing test.wasm -o test.opt.wasm
Fatal: Unsupported instruction for Flatten: BrOn
Fatal: Unsupported instruction for Flatten: BrOn
I'm trying with the current main branch (320867a):
$ wasm-opt --version
wasm-opt version 120 (version_117-528-g320867a7c)
Update: it also happens with wasm-opt version 119 (93883fd).
test.wasm.zip