JIT: bail out in optExtractArrIndex for constant array length (dotnet/coreclr#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)
commit343b99afa593e7307bf0f9810653ad8abeb4859a
tree3549c0e9c33e9aee4d45d0abb65e0ca1a2bd27ad
parent4c5f9dbf6235bea6f1f6b1a86e612bf3664271a5
JIT: bail out in optExtractArrIndex for constant array length (dotnet/coreclr#19493)

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

Fixes dotnet/coreclr#19454

Commit migrated from https://github.com/dotnet/coreclr/commit/a52128e8f59f7f824862ff4ecde0d8d9ae1631ef
src/coreclr/src/jit/optimizer.cpp
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_19454/Github_19454.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_19454/Github_19454.csproj [new file with mode: 0644]