[go/dev.simd] [dev.simd] cmd/compile: track which CPU features are in scope

1 view
Skip to first unread message

David Chase (Gerrit)

unread,
Oct 7, 2025, 5:06:31 PM (15 hours ago) Oct 7
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Junyang Shao, Go LUCI, Cherry Mui, golang-co...@googlegroups.com

David Chase submitted the change

Change information

Commit message:
[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-by: Junyang Shao <shaoj...@google.com>
Files:
  • M src/cmd/compile/internal/ssa/block.go
  • M src/cmd/compile/internal/ssa/compile.go
  • A src/cmd/compile/internal/ssa/cpufeatures.go
  • M src/cmd/compile/internal/ssa/sizeof_test.go
  • M src/cmd/compile/internal/types/type.go
  • A test/simd.go
Change size: L
Delta: 6 files changed, 417 insertions(+), 1 deletion(-)
Branch: refs/heads/dev.simd
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Junyang Shao
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: I0b6f2e87d01ec587818db11cf71fac1e4d500650
Gerrit-Change-Number: 706337
Gerrit-PatchSet: 10
Gerrit-Owner: David Chase <drc...@google.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages