Missed bounds check elimination #127553
Labels
A-codegen
Area: Code generation
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
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.
On Rust 1.79.0.
https://godbolt.org/z/xxjKd5anW
The compiler should be able to elide the bounds check for
v[i]
sincei
is always in [0, v.len()-1].The text was updated successfully, but these errors were encountered: