]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: enhance prove to infer bounds in slice len/cap calculations
authorDavid Chase <drchase@google.com>
Wed, 17 Sep 2025 21:19:15 +0000 (17:19 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 3 Oct 2025 19:31:07 +0000 (12:31 -0700)
commitd91148c7a8b2d774ddea5c66c170d24937195df5
tree07aac2402a8c34341115e581befd8119067f96ca
parent20c9377e47706d558e55a29eb5370ef2407a081b
cmd/compile: enhance prove to infer bounds in slice len/cap calculations

the example comes up in chunked reslicing, e.g. A[i:] where i
has a relationship with len(A)-K.

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

Change-Id: Ib97dede6cfc7bbbd27b4f384988f741760686604
Reviewed-on: https://go-review.googlesource.com/c/go/+/704875
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/708863
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/prove.go