dotnet/runtime

Remove JIT-workaround for eliminating bound check

Open

#67.044 aperta il 23 mar 2022

Vedi su GitHub
 (12 commenti) (3 reazioni) (1 assegnatario)C# (5445 fork)batch import
area-CodeGen-coreclrenhancementhelp wanted

Metriche repository

Star
 (17.886 star)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

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

Guida contributor