]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] 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)
committerDavid Chase <drchase@google.com>
Wed, 20 Aug 2025 22:13:04 +0000 (15:13 -0700)
commit7c84e984e675e44a2abc9aa25dd68cb9c9d08ec5
tree91970f18429a0466f473e0282d552c3df6f58064
parentcf31b1563534d6c4f8d2be87cbfdebd6e61ad479
[dev.simd] 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.

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>
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go
test/prove.go