]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: improve carry addition rules on PPC64
authorPaul E. Murphy <murp@ibm.com>
Fri, 8 Nov 2024 22:07:58 +0000 (16:07 -0600)
committerGopher Robot <gobot@golang.org>
Tue, 12 Nov 2024 17:40:44 +0000 (17:40 +0000)
commit745ec75719b8364867e1f5f5c9a711217513800c
tree2a04dd123e63888bd1da05b7f053959446341984
parentc969491ed7b0d3c7db951abfb95cf96777efbfbc
cmd/compile/internal/ssa: improve carry addition rules on PPC64

Fold constant int16 addends for usages of math/bits.Add64(x,const,0)
on PPC64. This usage shows up in a few crypto implementations;
notably the go wrapper for CL 626176.

Change-Id: I6963163330487d04e0479b4fdac235f97bb96889
Reviewed-on: https://go-review.googlesource.com/c/go/+/625899
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/_gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go
test/codegen/bits.go