]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: generate Select on WASM
authorBen Shi <powerman1st@163.com>
Tue, 20 Aug 2019 09:03:41 +0000 (09:03 +0000)
committerBen Shi <powerman1st@163.com>
Wed, 28 Aug 2019 02:29:25 +0000 (02:29 +0000)
commit731e6fc34ec1c99a72ac7c66db7a87786d918edf
tree35649dec44895480b294f2d13c4b31716bf3b834
parent9c67516ed69e6c5152b9f329f240f69f27f8004b
cmd/compile: generate Select on WASM

This CL performs the branchelim optimization on WASM with its
select instruction. And the total size of pkg/js_wasm decreased
about 80KB by this optimization.

Change-Id: I868eb146120a1cac5c4609c8e9ddb07e4da8a1d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/190957
Run-TryBot: Ben Shi <powerman1st@163.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Richard Musiol <neelance@gmail.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/branchelim.go
src/cmd/compile/internal/ssa/gen/Wasm.rules
src/cmd/compile/internal/ssa/rewriteWasm.go
test/codegen/condmove.go