Improve GenTreeUseEdgeIterator.
authorPat Gavlin <pagavlin@microsoft.com>
Thu, 9 Mar 2017 02:45:17 +0000 (18:45 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Sat, 18 Mar 2017 05:00:30 +0000 (22:00 -0700)
commit5ce102044d98db45b407a8a5ecfa428554abd7f9
treefb559ee554c4e4541c089d74b308a67164314e9f
parente1ecbd97e5d5d21a5326c0b119e4a9a9c6b73dfc
Improve GenTreeUseEdgeIterator.

Instead of executing a rather long set of conditionals on each call
to `GenTreeUseEdge::operator++`, decide on the function that will be
used to advance the iterator's state in the constructor.

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