]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make XER allocatable register on PPC64
authorPaul E. Murphy <murp@ibm.com>
Mon, 7 Jun 2021 19:11:20 +0000 (14:11 -0500)
committerPaul Murphy <murp@ibm.com>
Tue, 29 Mar 2022 18:55:09 +0000 (18:55 +0000)
commita4a0f9b1481e9be4361eb9c4998eca08e2eedb0a
tree3e92950ebfec892cc092a9703dfd16540781178e
parentf71daa6fe6eecab08ad47f9dbd584bc11691116a
cmd/compile: make XER allocatable register on PPC64

This is the first step towards decomposing aggregate operations
which create or consume the CA bit of the XER.

This helps optimize the canned sequence of Add64Carry (and
Sub64Borrow if it were implemented similarly) by minimizing
extraneous operations related to loading the CA bit,
reloading CA in chained operations, or extracting it when
unused.

Likewise, mark the operations which clobber CA.

Change-Id: I33e6dd2654a8cc39fcdbb9690a495f03558cdc97
Reviewed-on: https://go-review.googlesource.com/c/go/+/346869
Trust: Paul Murphy <murp@ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/gen/PPC64Ops.go
src/cmd/compile/internal/ssa/opGen.go