]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: update to rules on PPC64 folding bit reversal to load
authorJayanth Krishnamurthy <jayanth.krishnamurthy@ibm.com>
Wed, 27 Sep 2023 13:11:49 +0000 (08:11 -0500)
committerPaul Murphy <murp@ibm.com>
Wed, 18 Oct 2023 18:04:25 +0000 (18:04 +0000)
commit3550a84840c3922477dc78abc4677d485600f705
tree303aecad6cbe8ffe64d94bb846c11b2701aa6b89
parent91bb19a59ac41bfa52245cd390ead6ee0058417f
cmd/compile: update to rules on PPC64 folding bit reversal to load

In the Power10 rule to fold bit reversal into load, the MOVWZreg or
MOVHZreg (Zeroing out the upper bits of a  word or halfword) becomes
redundant since byte reverse (BR) load clears the upper bits. Hence
removing for Power10. Similarly for < Power10  cases in the rule used to
fold bit reversal into load (Bswap), the above redundant operation is removed.

Change-Id: Idb027e8b6e79b6acfb81d48a9a6cc06f8e9cd2db
Reviewed-on: https://go-review.googlesource.com/c/go/+/531377
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Jayanth Krishnamurthy <jayanth.krishnamurthy@ibm.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/_gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go