JIT: bail out in optExtractArrIndex for constant array length (#19493)
authorAndy Ayers <andya@microsoft.com>
Thu, 16 Aug 2018 16:22:05 +0000 (09:22 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Aug 2018 16:22:05 +0000 (09:22 -0700)
commita52128e8f59f7f824862ff4ecde0d8d9ae1631ef
treeeb93427f40dadb2720d9d06f4d5c996906443862
parent2f5e5d912751b1cec481ec3b3c35cb8c7a4adf0a
JIT: bail out in optExtractArrIndex for constant array length (#19493)

Generalize the bail out pattern to handle cases from spans where we may
see a known array length in a bounds check.

Fixes #19454
src/jit/optimizer.cpp
tests/src/JIT/Regression/JitBlue/GitHub_19454/Github_19454.cs [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_19454/Github_19454.csproj [new file with mode: 0644]