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/noffi_f32.fromasm.imprecise | |
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/noffi_f32.fromasm.imprecise')
-rw-r--r-- | test/noffi_f32.fromasm.imprecise | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/noffi_f32.fromasm.imprecise b/test/noffi_f32.fromasm.imprecise index 94c518385..85fc2b07c 100644 --- a/test/noffi_f32.fromasm.imprecise +++ b/test/noffi_f32.fromasm.imprecise @@ -1,10 +1,6 @@ (module (type $FUNCSIG$ff (func (param f32) (result f32))) (import "env" "_importf" (func $importf (param f32) (result f32))) - (import "env" "memory" (memory $0 256 256)) - (import "env" "table" (table 0 0 anyfunc)) - (import "env" "memoryBase" (global $memoryBase i32)) - (import "env" "tableBase" (global $tableBase i32)) (export "main" (func $main)) (export "exportf" (func $exportf)) (func $exportf (; 1 ;) (param $0 f32) (result f32) |