diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-07-20 20:05:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-07-20 20:05:28 -0700 |
commit | fa60ade30e03c6a13bbce26ff81c03ed1ae4da0b (patch) | |
tree | d45b2b08645ac004645dde875d22d1c66b15187d /test/unit.fromasm | |
parent | 56901f8cb6fb6db4622937479d3a375744289ff0 (diff) | |
download | binaryen-fa60ade30e03c6a13bbce26ff81c03ed1ae4da0b.tar.gz binaryen-fa60ade30e03c6a13bbce26ff81c03ed1ae4da0b.tar.bz2 binaryen-fa60ade30e03c6a13bbce26ff81c03ed1ae4da0b.zip |
more RemoveUnusedName opts: merge names when possible, and do block/loop merging based on their names
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r-- | test/unit.fromasm | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index e4a2ec488..f939782e7 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -143,30 +143,28 @@ (i32.const 51) ) ) - (block $label$break$Lout - (block $switch-default$16 - (block $switch-case$15 - (block $switch-case$12 - (block $switch-case$9 - (block $switch-case$8 - (br_table $switch-case$15 $switch-default$16 $switch-default$16 $switch-case$12 $switch-default$16 $switch-default$16 $switch-default$16 $switch-default$16 $switch-case$9 $switch-default$16 $switch-case$8 $switch-default$16 - (i32.sub - (get_local $0) - (i32.const 2) - ) + (block $switch-default$16 + (block $switch-case$15 + (block $switch-case$12 + (block $switch-case$9 + (block $switch-case$8 + (br_table $switch-case$15 $switch-default$16 $switch-default$16 $switch-case$12 $switch-default$16 $switch-default$16 $switch-default$16 $switch-default$16 $switch-case$9 $switch-default$16 $switch-case$8 $switch-default$16 + (i32.sub + (get_local $0) + (i32.const 2) ) ) - (br $label$break$Lout) ) - (br $label$break$Lout) - ) - (block $while-out$10 + (br $switch-default$16) ) - (br $label$break$Lout) + (br $switch-default$16) ) - (loop - (br $label$break$Lout) + (block $while-out$10 ) + (br $switch-default$16) + ) + (loop + (br $switch-default$16) ) ) (loop $label$break$L1 $label$continue$L1 |