JIT: fix value numbering to handle GT_NULLCHECK more generally (dotnet/coreclr#18942)
authorAndy Ayers <andya@microsoft.com>
Tue, 17 Jul 2018 01:48:24 +0000 (18:48 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Jul 2018 01:48:24 +0000 (18:48 -0700)
commitaf06645d6e8766991428c123a15c555f8c06d6fe
treeb429fa78d29989e689ea6b6cd982bd8e167ef229
parent1b9f251514776f6a49559d778506d4b8e756ce4f
JIT: fix value numbering to handle GT_NULLCHECK more generally (dotnet/coreclr#18942)

With the advent of dotnet/coreclr#18819 we may now see GT_NULLCHECK nodes with operands
that also can cause exceptions.

Handle this in value numbering.

Closes dotnet/coreclr#18937.

Commit migrated from https://github.com/dotnet/coreclr/commit/2a4db3b265eccb9d56e3706d260237b3687da9ca
src/coreclr/src/jit/valuenum.cpp