]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: add peepholes for all masked ops and bug fixes
authorJunyang Shao <shaojunyang@google.com>
Tue, 4 Nov 2025 21:46:06 +0000 (21:46 +0000)
committerJunyang Shao <shaojunyang@google.com>
Mon, 10 Nov 2025 17:53:24 +0000 (09:53 -0800)
commit771a1dc216ff02dd23c78ada35a207a363690d11
tree3e26c0ce8ea9baa79942b1e033ed1608f37b089f
parent972732b245399097e1e59aa2e35c47ef5efbf394
[dev.simd] cmd/compile: add peepholes for all masked ops and bug fixes

For 512-bits they are unchanged. This CL adds the optimization rules for
128/256-bits under feature check.

This CL also fixed a bug for masked load variant of instructions and
make them zeroing by default as well.

Change-Id: I6fe395541c0cd509984a81841420e71c3af732f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/717822
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/amd64/simdssa.go
src/cmd/compile/internal/ssa/_gen/AMD64.rules
src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/simd/_gen/simdgen/gen_simdrules.go
src/simd/_gen/simdgen/gen_simdssa.go
test/codegen/simd.go