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

贡献者指南