Range analysis doesn't take into account readonly arrays and you need to make a function local reference to eliminate the range check.
https://github.com/dotnet/coreclr/issues/5371 regressed due to dotnet/coreclr#15756
It shouldn't need to be conservative for a readonly array?
/cc @briansull @AndyAyersMS @mikedn
category:cq
theme:bounds-checks
skill-level:expert
cost:medium
impact:medium
Range analysis doesn't take into account readonly arrays and you need to make a function local reference to eliminate the range check.
https://github.com/dotnet/coreclr/issues/5371 regressed due to dotnet/coreclr#15756
It shouldn't need to be conservative for a readonly array?
/cc @briansull @AndyAyersMS @mikedn
category:cq
theme:bounds-checks
skill-level:expert
cost:medium
impact:medium