]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: exclude simd vars from merge local
authorJunyang Shao <shaojunyang@google.com>
Thu, 10 Jul 2025 22:04:21 +0000 (22:04 +0000)
committerJunyang Shao <shaojunyang@google.com>
Fri, 11 Jul 2025 19:07:31 +0000 (12:07 -0700)
commit1440ff70362f85c86b54b5c428fd95cb6cb35d91
tree80e8be244c6eb7c02e496f4d1d7c9301c9b9ec3c
parentccb43dcec791cb70431840ec2138addb489b828e
[dev.simd] cmd/compile: exclude simd vars from merge local

It looks like mergelocals pass's liveness analysis does not handle simd
variables well.

The added test forces two vectors to spill in a way that does not work
with mergelocals: if the added check is removed, then `v` and `m` will
be marked merged and spilled to the same location, failing the test.

Change-Id: Ife4e4e939565d817fc24f7180cb791a5084dd191
Reviewed-on: https://go-review.googlesource.com/c/go/+/687375
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/func.go
src/simd/simd_test.go