]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: Improve const shifts in PPC64.rules
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 4 Oct 2016 19:14:48 +0000 (14:14 -0500)
committerDavid Chase <drchase@google.com>
Wed, 5 Oct 2016 18:15:52 +0000 (18:15 +0000)
commit6dd38ebae11dc0dfa607723de3c12355e556c6ed
tree603b284deaa829a1d7e2d794be93eded680e6cc8
parentf54c0db859867f415a0702c8ceaa30c1a8976b0b
cmd/compile: Improve const shifts in PPC64.rules

This change updates PPC64.rules to recognize constant shift
counts and generate more efficient code sequences in those cases.

Fixes #17336

Change-Id: I8a7b812408d7a68388df41e42bad045dd214be17
Reviewed-on: https://go-review.googlesource.com/30310
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go