]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize ssa if blocks for wasm architecture
authorAgniva De Sarker <agnivade@yahoo.co.in>
Sat, 14 Sep 2019 15:28:30 +0000 (20:58 +0530)
committerAgniva De Sarker <agniva.quicksilver@gmail.com>
Sat, 21 Sep 2019 03:20:07 +0000 (03:20 +0000)
commit9c384cc570fa964cea1fecc061b17d6858cbcc0d
treeaadab2fec13f697f1b674d4dcb9f760a4fd80443
parentf1b6d1016ee8d1c25999bc69bd73558476e2cf34
cmd/compile: optimize ssa if blocks for wasm architecture

Check for the next block and accordingly place the successor blocks.
This saves an additional jump instruction if the next block is any one
of the successor blocks.

While at it, inline the logic of goToBlock.

Reduces the size of pkg/js_wasm by 264 bytes.

Change-Id: I671ac4322e6edcb0d7e590dcca27e074268068d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/195204
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Richard Musiol <neelance@gmail.com>
src/cmd/compile/internal/wasm/ssa.go