]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize bounded shifts on wasm
authorAgniva De Sarker <agnivade@yahoo.co.in>
Sun, 16 Jun 2019 10:37:55 +0000 (16:07 +0530)
committerAgniva De Sarker <agniva.quicksilver@gmail.com>
Wed, 28 Aug 2019 04:44:21 +0000 (04:44 +0000)
commit8fedb2d3383c29a00c8b43dc456a0ac03f836b45
tree6de90627002fe602a5bfeba425ab4d701b9520cb
parentb9ef4c0f5605efeb5e7e0a4ab817401d5e353b94
cmd/compile: optimize bounded shifts on wasm

Use the shiftIsBounded function to generate more efficient
Shift instructions.

Updates #25167

Change-Id: Id350f8462dc3a7ed3bfed0bcbea2860b8f40048a
Reviewed-on: https://go-review.googlesource.com/c/go/+/182558
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Richard Musiol <neelance@gmail.com>
src/cmd/compile/internal/ssa/gen/Wasm.rules
src/cmd/compile/internal/ssa/rewriteWasm.go
test/codegen/shift.go