JIT: Bounds check not elided for inlined function with safe arguments on Windows #112019
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
tenet-performance
Performance related issue
Milestone
JIT currently elides bounds check for
for (int i = 0; i < arr.Length; i++)
loops.When
ClearBase
is inlined with the given function arguments it is equivalent to exactly that, however the bounds check is not removed when targeting windows. See: https://godbolt.org/z/PMx8oPrM9. Withint[]
the redundant check is gone.The text was updated successfully, but these errors were encountered: