dotnet/runtime

Remove JIT-workaround for eliminating bound check

開放

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

 (12 則留言) (3 個反應) (1 位負責人)C# (5,445 個分叉)batch import
area-CodeGen-coreclrenhancementhelp wanted

倉庫指標

星標
 (17,886 顆星)
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

貢獻者指南