diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-25 15:48:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-25 15:48:07 -0700 |
commit | b48cfe91be0381a049a413e1c6d7d1ba83514a95 (patch) | |
tree | 3362195f3170f943d8d35db6b2afbde99f51ec6d /test | |
parent | 27ef6de772ca90824018819b91b8a230136f56c3 (diff) | |
download | binaryen-b48cfe91be0381a049a413e1c6d7d1ba83514a95.tar.gz binaryen-b48cfe91be0381a049a413e1c6d7d1ba83514a95.tar.bz2 binaryen-b48cfe91be0381a049a413e1c6d7d1ba83514a95.zip |
optimize breaks with values in RemoveUnusedBrs, check if their value can flow to the target anyhow
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/remove-unused-brs.txt | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/test/passes/remove-unused-brs.txt b/test/passes/remove-unused-brs.txt index 226065f3f..903c5f56a 100644 --- a/test/passes/remove-unused-brs.txt +++ b/test/passes/remove-unused-brs.txt @@ -2,45 +2,36 @@ (memory 256 256) (func $b0-yes (param $i1 i32) (block $topmost - (nop) ) ) (func $b1 (param $i1 i32) (block $topmost - (br $topmost - (i32.const 0) - ) + (i32.const 0) ) ) (func $b2 (param $i1 i32) (block $topmost (block $inner - (nop) ) ) ) (func $b3-yes (param $i1 i32) (block $topmost (block $inner - (nop) ) ) ) (func $b4 (param $i1 i32) (block $topmost (block $inner - (br $topmost - (i32.const 0) - ) + (i32.const 0) ) ) ) (func $b5 (param $i1 i32) (block $topmost (block $inner - (br $inner - (i32.const 0) - ) + (i32.const 0) ) ) ) @@ -103,15 +94,11 @@ (i32.const 1) (block $block1 (i32.const 12) - (br $topmost - (i32.const 1) - ) + (i32.const 1) ) (block $block3 (i32.const 27) - (br $topmost - (i32.const 2) - ) + (i32.const 2) ) ) ) @@ -169,29 +156,20 @@ (block $a (block $b (block $c - (nop) ) - (nop) ) - (nop) ) (block $a (block $b (block $c - (nop) ) - (nop) ) - (nop) ) (block $a (block $b (block $c - (nop) ) - (nop) ) - (nop) ) ) (func $b17 @@ -199,10 +177,8 @@ (if (i32.const 0) (block $block1 - (nop) ) (block $block3 - (nop) ) ) ) @@ -211,7 +187,6 @@ (i32.const 0) (i32.const 1) (block $block6 - (nop) ) ) ) @@ -219,7 +194,6 @@ (if (i32.const 0) (block $block8 - (nop) ) (i32.const 1) ) @@ -229,10 +203,8 @@ (if (i32.const 0) (block $block11 - (nop) ) (block $block13 - (nop) ) ) ) |