binaryen
binaryen copied to clipboard
Optimizer and compiler/toolchain library for WebAssembly
Allow multiple `no-inline` - passes as suggested in #6646 .
(At least that is my guess as to what is going wrong here, I'm not sure.) Testcase: ```wat (module (type $0 (func)) (type $1 (func (result i32))) (type $2 (func...
The attached .wasm file has this code at offset 95044: ``` 95044| block $label3 95046| block $label2 95048| local.get $var6 95050| i64.const 0 95052| i64.lt_s ;; $var6 < 0 (signed)...
The validator uses a large amount of code to check that child expressions have the correct types. Writing this code is a very manual process, and bugs are hard to...
I have multiple function patterns that I would like to exclude from inlining. Unfortunately, the noinline pass only allows a single pattern, which does not allow any conditionals. It would...
Hi, I was using AFL++ on Binaryen and noticed some generated files will cause Segment fault for `wasm-opt` with flag `-O3`. I hope gdb and valgrind output will help since...
If a table is public (imported or exported) then any function added to it can be called from the outside, so any change to the type might cause observable differences....
I experimented with removing IgnoreImplicitTraps but I don't think it is worth it. I'm uploading the code just to document the attempt. IgnoreImplicitTraps marks e.g. `i32.load` as not having a...
Example usage: ```java $ wasm-opt a.wasm --metrics > a $ wasm-opt b.wasm --metrics > b $ python scripts/diff_metrics a b Const : +1613 RefNull : +114 StringConst: -1 StructNew :...