diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-09-12 17:12:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 17:12:56 -0700 |
commit | 048bcadbc0fdc9866e70995984813551aa5681ea (patch) | |
tree | c401084f7a48aac8ef236f3f6f954d71ceec8884 /test/reduce | |
parent | c6729400f68a346c1d51702946bf6026638782a6 (diff) | |
download | binaryen-048bcadbc0fdc9866e70995984813551aa5681ea.tar.gz binaryen-048bcadbc0fdc9866e70995984813551aa5681ea.tar.bz2 binaryen-048bcadbc0fdc9866e70995984813551aa5681ea.zip |
Avoid new blocks in binary reading/writing (#1165)
* don't emit a toplevel block if we don't need to, as in wasm it is a list context
* don't create unnecessary blocks in wasm reading
Diffstat (limited to 'test/reduce')
-rw-r--r-- | test/reduce/memory_table.wast.txt | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/reduce/memory_table.wast.txt b/test/reduce/memory_table.wast.txt index 08918c9f3..005493040 100644 --- a/test/reduce/memory_table.wast.txt +++ b/test/reduce/memory_table.wast.txt @@ -24,14 +24,12 @@ (nop) ) (func $3 (type $0) (result i32) - (block $label$0 (result i32) - (i32.store - (i32.const 0) - (i32.const 65530) - ) - (i32.load - (i32.const 0) - ) + (i32.store + (i32.const 0) + (i32.const 65530) + ) + (i32.load + (i32.const 0) ) ) ) |