diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-01-10 11:34:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-10 11:34:53 -0800 |
commit | 623e42aa7be8aa030093b204491d94f3c297d312 (patch) | |
tree | 05158ff7c3ef2856345c1650192283ed737f91fd /test/reduce | |
parent | 8f90b655201e4cd77196a0b90ea4f398ecfe2c56 (diff) | |
download | binaryen-623e42aa7be8aa030093b204491d94f3c297d312.tar.gz binaryen-623e42aa7be8aa030093b204491d94f3c297d312.tar.bz2 binaryen-623e42aa7be8aa030093b204491d94f3c297d312.zip |
Optimize out memory and table when possible (#1352)
We can remove the memory/table (itself, or an import if imported) if they are not used. This is pretty minor on a large wasm file, but when reading small wasts it's very noticeable to have an unused memory and table all the time.
Diffstat (limited to 'test/reduce')
-rw-r--r-- | test/reduce/destructive.wast.txt | 1 | ||||
-rw-r--r-- | test/reduce/simple.wast.txt | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/test/reduce/destructive.wast.txt b/test/reduce/destructive.wast.txt index d58f0ed7a..05a3d3118 100644 --- a/test/reduce/destructive.wast.txt +++ b/test/reduce/destructive.wast.txt @@ -1,6 +1,5 @@ (module (type $0 (func (param i32) (result i32))) - (memory $0 0) (export "x" (func $0)) (func $0 (; 0 ;) (type $0) (param $var$0 i32) (result i32) (i32.const 100) diff --git a/test/reduce/simple.wast.txt b/test/reduce/simple.wast.txt index 9c162a7a6..adfd5ff04 100644 --- a/test/reduce/simple.wast.txt +++ b/test/reduce/simple.wast.txt @@ -1,6 +1,5 @@ (module (type $0 (func (result i32))) - (memory $0 0) (export "x" (func $0)) (func $0 (; 0 ;) (type $0) (result i32) (i32.const 5678) |