[ER] Array bound tests in a simple enough case #84314
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
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.
This comes from reduction of code that implements a binary heap (sift up) on an array:
rustc (1.53.0-nightly 392ba2b 2021-04-17) seems unable to remove the array bound tests, despite I think the code should be panic-less:
I expected it to compile to something closer to:
The text was updated successfully, but these errors were encountered: