]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: eliminate WASM's redundant extension & wrapping
authorBen Shi <powerman1st@163.com>
Sat, 24 Aug 2019 12:39:26 +0000 (12:39 +0000)
committerCherry Zhang <cherryyz@google.com>
Fri, 30 Aug 2019 21:20:03 +0000 (21:20 +0000)
commit1786ecd502364ac92493acbdee5ddca50c80afde
tree47a18a70bf0c14c4610146ce32892de45d5bef53
parentcd03fd05b55b3b22d31a56a9df388c72a96e62c2
cmd/compile: eliminate WASM's redundant extension & wrapping

This CL eliminates unnecessary pairs of I32WrapI64 and
I64ExtendI32U generated by the WASM backend for IF
statements. And it makes the total size of pkg/js_wasm/
decreases about 490KB.

Change-Id: I16b0abb686c4e30d5624323166ec2d0ec57dbe2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/191758
Run-TryBot: Ben Shi <powerman1st@163.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Richard Musiol <neelance@gmail.com>
src/cmd/compile/internal/wasm/ssa.go
test/codegen/comparisons.go