cmd/compile: some missing BCE cases #40987
Open
Labels
Milestone
Comments
And this: package foo
func f1(a []int) (r int) {
n := len(a)
for i := 0; i < n - 3; i += 4 {
r += a[i] // BCEed
}
return r
}
func f2(a []int) (r int) {
n := len(a)
for i := 0; i <= n - 4; i += 4 {
r += a[i] // not BCEed
}
return r
} I rememberd that before it behaved the inverse. |
And @zdjones |
One more:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
Both tricks work.
What did you see instead?
One of them doesn't work.
The text was updated successfully, but these errors were encountered: