dotnet/runtime

Remove JIT-workaround for eliminating bound check

Open

#67,044 建立於 2022年3月23日

在 GitHub 查看
 (12 留言) (3 反應) (1 負責人)C# (5,445 fork)batch import
area-CodeGen-coreclrenhancementhelp wanted

倉庫指標

Star
 (17,886 star)
PR 合併指標
 (平均合併 12天 11小時) (30 天內合併 661 個 PR)

描述

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

貢獻者指南