]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: rewrite to elide Slicemask from len==c>0 slicing
authorDavid Chase <drchase@google.com>
Wed, 20 Aug 2025 16:29:02 +0000 (12:29 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 3 Oct 2025 19:30:21 +0000 (12:30 -0700)
commitec70d1902355f10e0ab4788334b80db11ab69785
treef0545494afefc7bbddfca87c17cf28004c770592
parent10e796884905d23ab2419cc158769e8fdc73de4e
cmd/compile: rewrite to elide Slicemask from len==c>0 slicing

This might have been something that prove could be educated
into figuring out, but this also works, and it also helps
prove downstream.

Adjusted the prove test, because this change moved a message.

Cherry-picked from the dev.simd branch. This CL is not
necessarily SIMD specific. Apply early to reduce risk.

Change-Id: I5eabe639eff5db9cd9766a6a8666fdb4973829cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/697715
Commit-Queue: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Bypass: David Chase <drchase@google.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/708858
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go
test/prove.go