Let the optimizer decide what it takes to become a select

This commit is contained in:
dcodeIO
2018-01-12 05:03:25 +01:00
parent d89703cdad
commit 3980e53bb7
18 changed files with 225 additions and 242 deletions

View File

@ -472,13 +472,13 @@
)
(loop $continue|0
(if
(select
(if (result i32)
(get_local $2)
(i32.rem_u
(get_local $1)
(i32.const 4)
)
(get_local $2)
(get_local $2)
)
(block
(set_local $4

View File

@ -527,15 +527,15 @@
(block $break|0
(loop $continue|0
(if
(select
(if (result i32)
(i32.eqz
(get_local $2)
)
(get_local $2)
(i32.rem_u
(get_local $1)
(i32.const 4)
)
(i32.eqz
(get_local $2)
)
)
(block
(block