runtime
runtime copied to clipboard
Fix the execution order for array range check nodes.
In an array range check tree, the subtree that computes the array index must execute before the subtree that computes the array length. This currently causes the regression test added for VSO 283795 in dotnet/coreclr#8031 to fail when using the x86 legacy backend; the RyuJIT backend only passes the test because it marks the array length subtree as contained by the range check node during lowering.
@pgavlin As I already wrote in dotnet/coreclr#8031, ARM legacy backend has same problem. I will follow up this issue for ARM. Thanks!