summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-29 11:02:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-10-29 12:12:37 -0700
commit68bf64141dc4d35e6ff174fb68ce5bc50ff27c79 (patch)
tree45be7bbad13ed1eeaacfb7f9998076b4c96323a0 /test
parentc7cb56099d6a3b8b1dfb540cc64f6572c1101ed4 (diff)
downloadbinaryen-68bf64141dc4d35e6ff174fb68ce5bc50ff27c79.tar.gz
binaryen-68bf64141dc4d35e6ff174fb68ce5bc50ff27c79.tar.bz2
binaryen-68bf64141dc4d35e6ff174fb68ce5bc50ff27c79.zip
fix break value removal in merge-blocks: a br_if's type changes without a value, so finalize the node, and remove the drop
Diffstat (limited to 'test')
-rw-r--r--test/passes/merge-blocks.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/passes/merge-blocks.txt b/test/passes/merge-blocks.txt
index 152e6fbae..1116e0d28 100644
--- a/test/passes/merge-blocks.txt
+++ b/test/passes/merge-blocks.txt
@@ -29,14 +29,12 @@
(func $drop-block-br-if (type $0)
(block $block
(block $x
- (drop
- (block i32
- (drop
- (i32.const 1)
- )
- (br_if $x
- (i32.const 2)
- )
+ (block
+ (drop
+ (i32.const 1)
+ )
+ (br_if $x
+ (i32.const 2)
)
)
(drop