Hi,
I'm using Kotlin compiler to build wasm application. Kotlin plugin is using wasm-opt to optimize wasm code. My application causes wasm-opt to crash. The wasm-opt binary is called with these parameters:
--enable-gc --enable-reference-types --enable-exception-handling --enable-bulk-memory --enable-nontrapping-float-to-int --closed-world --no-inline=kotlin.wasm.internal.throwValue --no-inline=kotlin.wasm.internal.getKotlinException --inline-functions-with-loops --traps-never-happen --fast-math --type-ssa -O3 -O3 --gufa -O3 --type-merging -O3 -Oz
The wasm code:
app.zip
When using debug option I can see it crashes when running merge-similar-functions pass.
The workaround is to replace the last parameter -Oz with -Os.
Hi,
I'm using Kotlin compiler to build wasm application. Kotlin plugin is using
wasm-optto optimize wasm code. My application causeswasm-optto crash. Thewasm-optbinary is called with these parameters:The wasm code:
app.zip
When using debug option I can see it crashes when running
merge-similar-functionspass.The workaround is to replace the last parameter
-Ozwith-Os.