Return early in `TryGetUse` for unused nodes.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 21 Jun 2017 17:24:27 +0000 (10:24 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Sat, 24 Jun 2017 21:10:19 +0000 (14:10 -0700)
commit79b6ce6a9d19764adc7e3fdba73f6aac0200cee8
treed34939334455145b22e445281d5a4c5c7cdbe39e
parent8bbcefcac71fd4cd0161b39e2b6537251ddba53d
Return early in `TryGetUse` for unused nodes.

Now that `IsUnusedValue` is maintained during the first half of the
backend, `TryGetUse` can terminate early if it is set.

Note that this may return false negatives if the `IsUnusedValue` flag is
incorrectly set, but remains correct if said flag is incorrectly
cleared.

Commit migrated from https://github.com/dotnet/coreclr/commit/422be4021c63bc2cee06773e4678058eddcf4a54
src/coreclr/src/jit/lir.cpp