]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline: ignore superfluous slicing
authorJake Bailey <jacob.b.bailey@gmail.com>
Sat, 6 Sep 2025 01:13:03 +0000 (18:13 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 9 Sep 2025 19:10:10 +0000 (12:10 -0700)
commita67977da5e26e0c328488fe05bdd200903e58e99
tree667d10c20017962f9e0d01e72c2c6b250fb011fc
parenta5fa5ea51cd8fd9bcb8230d2accf9d55826f76b3
cmd/compile/internal/inline: ignore superfluous slicing

When slicing, ignore expressions which could be elided, as in slicing
starting at 0 or ending at len(v).

Fixes #75278

Change-Id: I9c18e29c3d4da9bef89bd25bb261d3cb60e66392
Reviewed-on: https://go-review.googlesource.com/c/go/+/701216
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Mark Freeman <markfreeman@google.com>
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/test/inl_test.go
test/fixedbugs/issue75278.go [new file with mode: 0644]