binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

Optimizer and compiler/toolchain library for WebAssembly

Results 356 binaryen issues
Sort by recently updated
recently updated
newest added

I have a binary wasm file demo1 [(zipped here)](https://github.com/WebAssembly/binaryen/files/15373320/demo1.zip). If I use the binary of binaryen/ `wasm-opt` available on the releases page, version 117, and I call ``` wasm-opt -O2...

LocalGraph by default will compute all the `local.set`s that can be read from all `local.get`s. However, many passes only query a small amount of those. To avoid wasted work, add...

Hello, when I'm trying this command ```bash wasm-opt -Oz iot-config-web-dx_bg.wasm --zero-filled-memory -o out.wasm ``` I'm getting this: ``` fish: Job 1, '~/code/binaryen/bin/wasm-opt -O…' terminated by signal SIGSEGV (Address boundary error)...

Specified at https://github.com/WebAssembly/half-precision/blob/main/proposals/half-precision/Overview.md A few notes: - The F32x4 and F64x2 versions of madd and nmadd are missing spect tests. - For madd, the implementation was incorrectly doing `(b*c)+a` where...

This pass may do multiple iterations, and before this PR it scanned the entire module each time. That is simpler than tracking stale data, but it can be quite slow....

Currently, the WASM page size is fixed at 64KiB, which is rather expensive [in some scenarios](https://github.com/wasm3/embedded-wasm-apps). WebAssembly WG proposed a new feature to handle it nicely: https://github.com/WebAssembly/custom-page-sizes/blob/main/proposals/custom-page-sizes/Overview.md It should be...

Adds a comment to explain that a `(result)` is only added to `BinaryenIf` statements if both arms return concrete types. Relates to https://github.com/WebAssembly/binaryen/issues/6868

This is helpful when e.g. there's a WASM shared library with all possible functions exported but the application only needs a subset of those exports. Removing exports in that case...

I've noticed some seemingly incorrect behavior in binaryen working with one of the cases from the [`br_if.wast` spec test on the wasm-3.0 branch](https://github.com/WebAssembly/spec/blob/wasm-3.0/test/core/br_if.wast#L666-L679): ```wast (module (type $t (func)) (func $f...

The question is in the title. I searched in the code, and I found nothing. I am curious to know if there are any limits in the parser or the...