diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-10 14:28:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-10 14:41:09 -0700 |
commit | 7c0edee0dec829f6c739533aa4c4631978ff4632 (patch) | |
tree | 123c95d5aaf66dcbdaeac58f674fc46d972c3fc8 /test/example/relooper-fuzz.txt | |
parent | 1c6a1375140c7b2ef720e706d7d97efe7140cdcc (diff) | |
download | binaryen-7c0edee0dec829f6c739533aa4c4631978ff4632.tar.gz binaryen-7c0edee0dec829f6c739533aa4c4631978ff4632.tar.bz2 binaryen-7c0edee0dec829f6c739533aa4c4631978ff4632.zip |
optimize if-else to br_if when in a block
Diffstat (limited to 'test/example/relooper-fuzz.txt')
-rw-r--r-- | test/example/relooper-fuzz.txt | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/test/example/relooper-fuzz.txt b/test/example/relooper-fuzz.txt index b46932009..5db33f21e 100644 --- a/test/example/relooper-fuzz.txt +++ b/test/example/relooper-fuzz.txt @@ -478,47 +478,47 @@ (call_import $print (i32.const 5) ) - (if - (i32.rem_u - (call $check) - (i32.const 2) - ) - (block - (set_local $0 - (i32.const 6) + (br_if $shape$3$continue + (i32.eqz + (i32.rem_u + (call $check) + (i32.const 2) ) - (br $shape$3$continue) ) - (br $shape$3$continue) ) + (set_local $0 + (i32.const 6) + ) + (br $shape$3$continue) ) ) (call_import $print (i32.const 4) ) - (if - (i32.rem_u - (tee_local $1 - (call $check) + (br_if $shape$3$continue + (i32.eqz + (i32.rem_u + (tee_local $1 + (call $check) + ) + (i32.const 3) ) - (i32.const 3) ) - (if - (i32.eq - (i32.rem_u - (get_local $1) - (i32.const 3) - ) - (i32.const 1) + ) + (if + (i32.eq + (i32.rem_u + (get_local $1) + (i32.const 3) ) - (block - (set_local $0 - (i32.const 6) - ) - (br $shape$3$continue) + (i32.const 1) + ) + (block + (set_local $0 + (i32.const 6) ) + (br $shape$3$continue) ) - (br $shape$3$continue) ) (call_import $print (i32.const 2) |