summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai (kripken) <alonzakai@gmail.com>2017-05-10 14:40:42 -0700
committerAlon Zakai (kripken) <alonzakai@gmail.com>2017-05-10 14:51:41 -0700
commita42f2247e0f4ddd7c4560a9d466f65ee88753bd7 (patch)
tree3afb7e03fcc60af27db75c9b5fc355fbc9c0f264 /test/unit.fromasm.imprecise
parent6efa4a97b2c643bf35756bb6e989b90d6b3e44bc (diff)
downloadbinaryen-a42f2247e0f4ddd7c4560a9d466f65ee88753bd7.tar.gz
binaryen-a42f2247e0f4ddd7c4560a9d466f65ee88753bd7.tar.bz2
binaryen-a42f2247e0f4ddd7c4560a9d466f65ee88753bd7.zip
allow values to flow out of loops in RemoveUnneededBrs, and simplify some unnecessary complexity in that pass as well
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r--test/unit.fromasm.imprecise37
1 files changed, 15 insertions, 22 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index b0f46e7ad..bf01a4681 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -179,15 +179,11 @@
)
)
(block $switch-case9
- (block $switch-case6
- (block $switch-case5
- (block $switch-case4
- (br_table $switch-case9 $switch-case9 $switch-case9 $switch-case6 $switch-case9 $switch-case9 $switch-case9 $switch-case9 $switch-case5 $switch-case9 $switch-case4 $switch-case9
- (i32.sub
- (get_local $0)
- (i32.const 2)
- )
- )
+ (block $switch-case4
+ (br_table $switch-case9 $switch-case9 $switch-case9 $switch-case4 $switch-case9 $switch-case9 $switch-case9 $switch-case9 $switch-case4 $switch-case9 $switch-case4 $switch-case9
+ (i32.sub
+ (get_local $0)
+ (i32.const 2)
)
)
)
@@ -801,22 +797,19 @@
(call $h
(i32.const -1)
)
- (block $__rjti$1
- (loop $while-in
- (br_if $while-in
- (i32.eqz
- (tee_local $0
- (i32.add
- (get_local $0)
- (i32.const 1)
- )
+ (loop $while-in
+ (br_if $while-in
+ (i32.eqz
+ (tee_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 1)
)
)
)
- (call $h
- (i32.const 2)
- )
- (br $__rjti$1)
+ )
+ (call $h
+ (i32.const 2)
)
)
(call $h