]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: rules change to use ANDN more effectively on ppc64x
authorLynn Boger <laboger@linux.vnet.ibm.com>
Fri, 3 Feb 2017 13:40:18 +0000 (08:40 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Thu, 9 Feb 2017 18:57:19 +0000 (18:57 +0000)
commit695f12c21a217e0116a80c2c1a518d382cfea22e
treef044813f4849580f97075813aaea4653d42a5d3b
parente24228af2566593a18932b563e548d288ea3cbb7
cmd/compile: rules change to use ANDN more effectively on ppc64x

Currently there are cases where an XOR with -1 followed by an AND
is generanted when it could be done with just an ANDN instruction.

Changes to PPC64.rules and required files allows this change
in generated code.  Examples of this occur in sha3 among others.

Fixes: #18918
Change-Id: I647cb9b4a4aaeebb27db85f8bf75487d78f720c9
Reviewed-on: https://go-review.googlesource.com/36218
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
src/cmd/compile/internal/ppc64/prog.go
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/gen/PPC64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewritePPC64.go