Fix code generation for array length check in legacy JIT
authorHyeongseok Oh <hseok82.oh@samsung.com>
Thu, 23 Feb 2017 05:54:03 +0000 (14:54 +0900)
committerHyeongseok Oh <hseok82.oh@samsung.com>
Thu, 23 Feb 2017 07:52:17 +0000 (16:52 +0900)
commitf8f518890c8d2ddc2fa3ac67b08b9266c5f3f7a6
treedd072d18d1ab52fc2872dffc1d0ba38302385f91
parentc203d85cfc6c3d0baef1867314328da1e003506b
Fix code generation for array length check in legacy JIT

check array index is in register and reload it if spilled

Commit migrated from https://github.com/dotnet/coreclr/commit/7e7e09d3b58bb7adff5dac3a51c5b6eee78c7c90
src/coreclr/src/jit/codegenlegacy.cpp