Descriptioncmd/gc: get rid of redundant slice bound check.
For normal slices a[i:j] we're generating 3 bounds
checks: j<={len(string),cap(slice)}, j<=j (!), and i<=j.
Somehow snuck in as part of the [i:j:k] implementation
where the second check does something.
Remove the second check when we don't need it.
Patch Set 1 #Patch Set 2 : diff -r 564e8c77a065 https://code.google.com/p/go/ #Patch Set 3 : diff -r 564e8c77a065 https://code.google.com/p/go/ #Patch Set 4 : diff -r 56696c13acef https://khr%40golang.org@code.google.com/p/go/ #MessagesTotal messages: 6
|