Always try to eliminate branches if tree-shaking is enabled

This commit is contained in:
dcodeIO
2018-04-24 23:11:11 +02:00
parent 97e7158fff
commit 391db28fe2
38 changed files with 782 additions and 789 deletions

View File

@ -3014,19 +3014,19 @@
(if
(i32.and
(if (result i32)
(tee_local $3
(tee_local $4
(i32.eqz
(tee_local $4
(tee_local $3
(i32.load offset=4
(get_local $0)
)
)
)
)
(get_local $3)
(get_local $4)
(i32.ge_s
(get_local $2)
(get_local $4)
(get_local $3)
)
)
(i32.const 1)
@ -3042,9 +3042,9 @@
)
(set_local $2
(select
(tee_local $3
(tee_local $4
(i32.add
(get_local $4)
(get_local $3)
(get_local $2)
)
)
@ -3052,13 +3052,13 @@
(i32.const 0)
)
(i32.gt_s
(get_local $3)
(get_local $4)
(get_local $2)
)
)
)
)
(set_local $3
(set_local $0
(i32.load
(get_local $0)
)
@ -3067,14 +3067,14 @@
(if
(i32.lt_s
(get_local $2)
(get_local $4)
(get_local $3)
)
(block
(if
(i32.eq
(i32.load offset=8
(i32.add
(get_local $3)
(get_local $0)
(i32.shl
(get_local $2)
(i32.const 2)
@ -3128,19 +3128,19 @@
(if
(i32.and
(if (result i32)
(tee_local $3
(tee_local $4
(i32.eqz
(tee_local $4
(tee_local $3
(i32.load offset=4
(get_local $0)
)
)
)
)
(get_local $3)
(get_local $4)
(i32.ge_s
(get_local $2)
(get_local $4)
(get_local $3)
)
)
(i32.const 1)
@ -3156,9 +3156,9 @@
)
(set_local $2
(select
(tee_local $3
(tee_local $4
(i32.add
(get_local $4)
(get_local $3)
(get_local $2)
)
)
@ -3166,13 +3166,13 @@
(i32.const 0)
)
(i32.gt_s
(get_local $3)
(get_local $4)
(get_local $2)
)
)
)
)
(set_local $3
(set_local $0
(i32.load
(get_local $0)
)
@ -3181,14 +3181,14 @@
(if
(i32.lt_s
(get_local $2)
(get_local $4)
(get_local $3)
)
(block
(if
(i32.eq
(i32.load offset=8
(i32.add
(get_local $3)
(get_local $0)
(i32.shl
(get_local $2)
(i32.const 2)