]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: track which CPU features are in scope
authorDavid Chase <drchase@google.com>
Fri, 5 Sep 2025 23:05:18 +0000 (19:05 -0400)
committerDavid Chase <drchase@google.com>
Tue, 7 Oct 2025 21:06:28 +0000 (14:06 -0700)
commitd2270bccbda381a542b77157c9960e4ae90df8ad
treed49ac12fc638dcf16a93c272ddc44b52ccf669fd
parent48756abd3a8f4e0d40d67979c5943979571f450e
[dev.simd] cmd/compile: track which CPU features are in scope

analysis for

- is this block only reached through feature checks?
- does the function signature imply AVX-something?
- is there an instruction in this block which implies AVX-something?

and keep track of which features those are.  Features =
AVX, AVX2, AVX512, etc.

Has a test.

Change-Id: I0b6f2e87d01ec587818db11cf71fac1e4d500650
Reviewed-on: https://go-review.googlesource.com/c/go/+/706337
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/cmd/compile/internal/ssa/block.go
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/cpufeatures.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/sizeof_test.go
src/cmd/compile/internal/types/type.go
test/simd.go [new file with mode: 0644]