]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: improve PPC64 rules for AtomicLoad{8,32}
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 5 Oct 2021 15:22:47 +0000 (10:22 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 6 Oct 2021 12:54:11 +0000 (12:54 +0000)
commitce72766a02a4be127a26e95fbd62c4b4bb906e91
treead9f823d8fad9950ca58bee70326f2493486aba6
parent72c52bfbe2f72fbcacc865e18f132366bdd2effa
cmd/compile: improve PPC64 rules for AtomicLoad{8,32}

This adds a rule to avoid the zero extension after an AtomicLoad8
or AtomicLoad32 since the atomic load has already filled it with
zeros. This eliminates an instruction in a high use block in findObject
and the AtomicLoad8 appears many times within runtime.

Change-Id: I7e684bf73d3812110bd371e05b1aa44fa235fc9b
Reviewed-on: https://go-review.googlesource.com/c/go/+/354029
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go