Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: odd bounds check elimination #25537
What version of Go are you using (
Hi @zhengxiaoyao0716. You may be happy to know that this will improve significantly in Go 1.11, which can eliminate the two bounds checks in
In Go 1.10, you happen to be hitting some of the weirder corner cases of the compiler.
Hopefully that explains things. Since this will be fixed in Go 1.11, I'm closing the issue.