Refactor some logic in GT_IND morphing.
authorPat Gavlin <pagavlin@microsoft.com>
Fri, 11 Nov 2016 20:34:28 +0000 (12:34 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Fri, 11 Nov 2016 20:34:28 +0000 (12:34 -0800)
commit24e1faf0c00237992d23b520c9f90f6e76aa75bd
treeb9c16cfaded0ef927228f86900a916aed40ee75a
parent2d2c84d978c591c4e112c34a00fb8fda5a1a85fa
Refactor some logic in GT_IND morphing.

This change separates the logic that morphs child trees that reference
lclVars in preparation to use them as the result of a GT_IND fold from
the logic that sets the flags on the result of the fold. This also
standardizes GT_IND morphing on using the `typ` local to refer to the
type of the tree being morphed (rather than a mix of `typ` and
`tree->TypeGet()`).

Commit migrated from https://github.com/dotnet/coreclr/commit/39cb6bb082430bcec17ba061e0cc9f62972b8029
src/coreclr/src/jit/morph.cpp