JIT: optimize unbox/unbox.any when type is known (dotnet/coreclr#21501)
authorAndy Ayers <andya@microsoft.com>
Thu, 13 Dec 2018 00:56:07 +0000 (16:56 -0800)
committerGitHub <noreply@github.com>
Thu, 13 Dec 2018 00:56:07 +0000 (16:56 -0800)
commitd153f2ba35eacb7c8f360aa7c669dd14477c50bc
tree9d03b6f448dc628bd56ed49b9d3bae19725a531e
parent52a8890da45ce320ce84fdc3975d887ff814c678
JIT: optimize unbox/unbox.any when type is known (dotnet/coreclr#21501)

Optimize away the unbox type test when the jit knows the type of object
being unboxed and can resolve the type comparison at jit time.

Closes dotnet/coreclr#14473.

Commit migrated from https://github.com/dotnet/coreclr/commit/d279e47a9bc6a9d44484c3143a5f8dd9bc57579c
src/coreclr/src/jit/importer.cpp