JIT: rework gtCanOptimizeTypeEquality (dotnet/coreclr#13657)
authorAndy Ayers <andya@microsoft.com>
Wed, 30 Aug 2017 02:48:40 +0000 (19:48 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Aug 2017 02:48:40 +0000 (19:48 -0700)
commit06522714e7429b2550a291b14381fcb73c184ed0
treedd518c885463f9209f8d08b48f6d9c77d9bc72b2
parent5cb7c5dc1a6696d9bd967996282c34b751e46726
JIT: rework gtCanOptimizeTypeEquality (dotnet/coreclr#13657)

Instead of looking at the verifier type for a local (which is currently never
set for ref classes in CoreCLR), use the new utilties for finding ref type
class handles.

Since the utility works on all tree types, also remove the restriction that
the tree must be a local.

Closes dotnet/coreclr#13555.

Commit migrated from https://github.com/dotnet/coreclr/commit/a89ed32bd6f7bd7424336725427f335f2b5edcfd
src/coreclr/src/jit/gentree.cpp