dotnet/runtime

Remove JIT-workaround for eliminating bound check

Open

#67 044 ouverte le 23 mars 2022

Voir sur GitHub
 (12 commentaires) (3 réactions) (1 assigné)C# (5 445 forks)batch import
area-CodeGen-coreclrenhancementhelp wanted

Métriques du dépôt

Stars
 (17 886 stars)
Métriques de merge PR
 (Merge moyen 12j 11h) (661 PRs mergées en 30 j)

Description

https://github.com/dotnet/runtime/pull/62864 taught the JIT to recognize more pattern to eliminate bound checks for array and span indexing. Thus the workarounds like the uint-casts aren't needed anymore, and could be undone.

Also cf. https://github.com/dotnet/runtime/pull/64899#discussion_r833378404

category:cq theme:bounds-checks skill-level:beginner cost:small impact:small

Guide contributeur