Suppress some unnecessary blocks and nops; Fix compilation of always 'break'ing 'do's

This commit is contained in:
dcodeIO
2018-05-06 05:46:35 +02:00
parent 2f8f477ab0
commit 25a1f6230a
45 changed files with 1318 additions and 1642 deletions

View File

@ -578,7 +578,6 @@
(local $3 i32)
(local $4 i32)
(local $5 i32)
(nop)
(block $break|0
(loop $continue|0
(if
@ -2670,22 +2669,20 @@
(if
(get_local $2)
(block
(block
(i32.store8
(i32.add
(get_local $0)
(tee_local $2
(i32.sub
(get_local $2)
(i32.const 1)
)
(i32.store8
(i32.add
(get_local $0)
(tee_local $2
(i32.sub
(get_local $2)
(i32.const 1)
)
)
(i32.load8_u
(i32.add
(get_local $1)
(get_local $2)
)
)
(i32.load8_u
(i32.add
(get_local $1)
(get_local $2)
)
)
)