Rework loop compilation / flows (#644)

This commit is contained in:
Daniel Wirtz
2019-06-11 12:52:16 +02:00
committed by GitHub
parent 420812f5b2
commit 40dac8269d
125 changed files with 52818 additions and 61256 deletions

View File

@ -619,7 +619,7 @@
i32.store
i32.const 0
local.set $0
loop $repeat|0
loop $loop|0
block $break|0
local.get $0
i32.const 23
@ -634,7 +634,7 @@
i32.store offset=4
i32.const 0
local.set $1
loop $repeat|1
loop $loop|1
block $break|1
local.get $1
i32.const 16
@ -655,14 +655,14 @@
i32.const 1
i32.add
local.set $1
br $repeat|1
br $loop|1
end
end
local.get $0
i32.const 1
i32.add
local.set $0
br $repeat|0
br $loop|0
end
end
i32.const 304
@ -1167,7 +1167,8 @@
loop $continue|1
local.get $3
i32.const 8
i32.ge_u
i32.lt_u
i32.eqz
if
local.get $0
local.get $1
@ -1249,7 +1250,8 @@
loop $continue|4
local.get $3
i32.const 8
i32.ge_u
i32.lt_u
i32.eqz
if
local.get $0
local.get $3
@ -1595,7 +1597,7 @@
local.set $3
global.get $~lib/rt/pure/CUR
local.set $0
loop $repeat|0
loop $loop|0
block $break|0
local.get $3
local.get $0
@ -1655,14 +1657,14 @@
i32.const 4
i32.add
local.set $3
br $repeat|0
br $loop|0
end
end
local.get $2
global.set $~lib/rt/pure/CUR
local.get $5
local.set $0
loop $repeat|1
loop $loop|1
block $break|1
local.get $0
local.get $2
@ -1675,12 +1677,12 @@
i32.const 4
i32.add
local.set $0
br $repeat|1
br $loop|1
end
end
local.get $5
local.set $0
loop $repeat|2
loop $loop|2
block $break|2
local.get $0
local.get $2
@ -1700,7 +1702,7 @@
i32.const 4
i32.add
local.set $0
br $repeat|2
br $loop|2
end
end
local.get $5