eliminate unnecessary tee+drop in unchecked set

This commit is contained in:
dcode
2019-03-18 18:27:48 +01:00
parent 0932cf17ed
commit 83566a5512
3 changed files with 43 additions and 50 deletions

View File

@ -4336,23 +4336,18 @@
i32.const 1
call $~lib/array/Array<String>#constructor
local.set $6
block (result i32)
local.get $6
local.tee $3
i32.load offset=4
block $~lib/runtime/LINK<String,Array<String>>|inlined.0 (result i32)
local.get $0
local.set $7
local.get $7
local.get $3
call $~lib/runtime/doLink
local.get $7
end
local.tee $3
i32.store
local.get $6
local.tee $3
i32.load offset=4
block $~lib/runtime/LINK<String,Array<String>>|inlined.0 (result i32)
local.get $0
local.set $7
local.get $7
local.get $3
call $~lib/runtime/doLink
local.get $7
end
drop
i32.store
local.get $6
return
end