dotnet/runtime

Remove JIT-workaround for eliminating bound check

オープン

#67,044 opened on 2022/03/23

 (12 件のコメント) (3 件のリアクション) (1 人の担当者)C# (5,445 件のフォーク)batch import
area-CodeGen-coreclrenhancementhelp wanted

Repository metrics

Stars
 (17,886 個のスター)
PR merge metrics
 (平均マージ 12d 11h) (30d で 661 merged PRs)

説明

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

コントリビューターガイド