Rust doesn't optimize bounds checks that Go 1.11 does #51709
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
C-optimization
Category: An issue highlighting optimization opportunities or PRs implementing such
I-slow
Issue: Problems and improvements with respect to performance of generated code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
After reading https://docs.google.com/presentation/d/1tpeJZFObkeick4CF-mx0L3CeCgvT15B96aJeRpxEPcE/preview#slide=id.g3bc6fcf60c_0_200, I noticed that there were three examples of Go optimizing bounds checks. None of those are optimized by Rust nightly in release mode as I see calls in assembly to bounds checking error function.
The text was updated successfully, but these errors were encountered: