[go/dev.simd] [dev.simd] cmd/compile: add masked merging ops

2 views
Skip to first unread message

Junyang Shao (Gerrit)

unread,
Nov 11, 2025, 4:34:44 PM (yesterday) Nov 11
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, David Chase, golang-co...@googlegroups.com

Junyang Shao submitted the change with unreviewed changes

Unreviewed changes

8 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: src/simd/internal/simd_test/simd_test.go
Insertions: 4, Deletions: 3.

The diff is too large to show. Please review the diff.
```
```
The name of the file: src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
Insertions: 1, Deletions: 1.

The diff is too large to show. Please review the diff.
```
```
The name of the file: src/cmd/compile/internal/ssa/rewriteAMD64.go
Insertions: 5624, Deletions: 5624.

The diff is too large to show. Please review the diff.
```
```
The name of the file: src/simd/_gen/simdgen/gen_simdMachineOps.go
Insertions: 2, Deletions: 2.

The diff is too large to show. Please review the diff.
```
```
The name of the file: src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
Insertions: 403, Deletions: 403.

The diff is too large to show. Please review the diff.
```
```
The name of the file: src/cmd/compile/internal/ssa/_gen/AMD64Ops.go
Insertions: 15, Deletions: 16.

The diff is too large to show. Please review the diff.
```

Change information

Commit message:
[dev.simd] cmd/compile: add masked merging ops and optimizations

This CL generates optimizations for masked variant of AVX512
instructions for patterns:

x.Op(y).Merge(z, mask) => OpMasked(z, x, y mask), where OpMasked is
resultInArg0.
Change-Id: Ife7ccc9ddbf76ae921a085bd6a42b965da9bc179
Reviewed-by: David Chase <drc...@google.com>
TryBot-Bypass: Junyang Shao <shaoj...@google.com>
Files:
  • M src/cmd/compile/internal/amd64/simdssa.go
  • M src/cmd/compile/internal/amd64/ssa.go
  • M src/cmd/compile/internal/ssa/_gen/AMD64Ops.go
  • M src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
  • M src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
  • M src/cmd/compile/internal/ssa/opGen.go
  • M src/cmd/compile/internal/ssa/rewriteAMD64.go
  • M src/simd/_gen/simdgen/gen_simdMachineOps.go
  • M src/simd/_gen/simdgen/gen_simdTypes.go
  • M src/simd/_gen/simdgen/gen_simdrules.go
  • M src/simd/_gen/simdgen/gen_simdssa.go
  • M src/simd/_gen/simdgen/gen_utility.go
  • M src/simd/_gen/simdgen/ops/Moves/go.yaml
  • M src/simd/internal/simd_test/simd_test.go
  • M test/codegen/simd.go
Change size: XL
Delta: 15 files changed, 17367 insertions(+), 627 deletions(-)
Branch: refs/heads/dev.simd
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by David Chase
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result-1 by Go LUCI, TryBot-Bypass+1 by Junyang Shao
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: Ife7ccc9ddbf76ae921a085bd6a42b965da9bc179
Gerrit-Change-Number: 718160
Gerrit-PatchSet: 10
Gerrit-Owner: Junyang Shao <shaoj...@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