]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: use the right type for spill slot
authorCherry Mui <cherryyz@google.com>
Tue, 16 Sep 2025 01:27:19 +0000 (21:27 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 16 Sep 2025 14:21:17 +0000 (07:21 -0700)
commit0e590a505d7f1050ac60df4b52c414cfc618239d
treeafd0505ea09b9348377f2e46761229cea0b60f28
parentdabe2bb4fbf47e64729591e896f7231bda0c42a7
[dev.simd] cmd/compile: use the right type for spill slot

Currently, when shuffling registers, if we need to spill a
register, we always create a spill slot of type int64. The type
doesn't actually matter, as long as it is wide enough to hold the
registers. This is no longer true with SIMD registers, which could
be wider than a int64. Create the slot with the proper type
instead.

Change-Id: I85c82e2532001bfdefe98c9446f2dd18583d49b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/704055
TryBot-Bypass: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/value.go
src/cmd/internal/testdir/testdir_test.go
test/simd/bug1.go [new file with mode: 0644]