]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: cleanup ANDCCconst rewrite rules on PPC64
authorPaul E. Murphy <murp@ibm.com>
Thu, 2 May 2024 20:05:27 +0000 (15:05 -0500)
committerPaul Murphy <murp@ibm.com>
Fri, 17 May 2024 15:28:00 +0000 (15:28 +0000)
commitd11e41728515aea6f7def4a279a3a2591fb18650
treec8e18a09ecf0fb0d298ee15b51b177756600ef29
parent2f6426834c150c37cdb1330b48e9903963d4329c
cmd/compile/internal/ssa: cleanup ANDCCconst rewrite rules on PPC64

Avoid creating duplicate usages of ANDCCconst. This is preparation for
a patch to reintroduce ANDconst to simplify the lower pass while
treating ANDCCconst like other *CC* ssa opcodes.

Also, move many of the similar rules wich retarget ANDCCconst users
to the flag result to a common rule for all compares against zero.

Change-Id: Ida86efe17ff413cb82c349d8ef69d2899361f4c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/585400
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/ssa/_gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go
test/codegen/arithmetic.go