package p
func f(x, y []int) {
n := len(x)
if len(y) < n {
n = len(y)
}
for i := 0; i < n; i++ {
_ = x[i]
_ = y[i]
}
}
Ideally there would be no bounds checks in the loop. Right now there are.
This grew out of a conversation in CL 164966.
cc @rasky @aclements @zdjones
Ideally there would be no bounds checks in the loop. Right now there are.
This grew out of a conversation in CL 164966.
cc @rasky @aclements @zdjones