go version go1.27-devel_a6500456f3 Wed Mar 25 22:41:27 2026 -0700 linux/amd64
See the following minimal repro:
package p
func f(s []byte) {
for i := uint(1); i < uint(len(s)); i *= 2 {
_ = s[i]
}
}
This generate a bounds check even tho we don't need to.
See the following minimal repro:
This generate a bounds check even tho we don't need to.