Rust is unable to figure out that if
inside the nested loop is executed at most once per outer loop iteration
#65969
Labels
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.
Rust unable to figure out that
if
inside the nested loop is executed at most once per outer loop iteration.https://users.rust-lang.org/t/how-to-make-compiler-automatically-elide-bound-checks/34148/6
Generated asm:
Rust version: 1.38 (stable)
platform: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: