Eliminate array bounds check for trivial case #13288
Labels
closed due inactivity
The issue/PR was automatically closed due to inactivity.
nice to have
We don’t see a good reason not to have it but won’t go out of our way to implement it.
optimizer
stale
The issue/PR was marked as stale because it has been open for too long.
The following code seems to do the bounds check even though it is trivially unnecessary.
Ideally the optimizer would also catch less trivial but apparently easy cases like for loops where the index is checked to be in bounds as part of the loop condition.
Related: #9117
The text was updated successfully, but these errors were encountered: