From 048bcadbc0fdc9866e70995984813551aa5681ea Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 12 Sep 2017 17:12:56 -0700 Subject: 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 --- test/reduce/memory_table.wast.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'test/reduce') 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) ) ) ) -- cgit v1.2.3