]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: don't require single use for SIMD load/store folding
authorCherry Mui <cherryyz@google.com>
Fri, 26 Sep 2025 18:38:22 +0000 (14:38 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 26 Sep 2025 19:03:26 +0000 (12:03 -0700)
commitf0e281e693685954df71374c9a9fb856e8745519
tree64fd3ed50530c33818ba3dd65515dc2da4adf137
parentb4d1e018a85a7631166ce42a7b3bfd929b00ed98
[dev.simd] cmd/compile: don't require single use for SIMD load/store folding

For load and store on scalar values, we fold the address to the
load/stoer instruction without requiring the address having one
use. Do the same for SIMD, and remove the single use check.

Change-Id: Ie7d1bbae1b32bb8c069548197632edae36b419b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/707137
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/_gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go