Refactor some logic in GT_IND morphing.
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()`).

sagood/coreclr,cshung/coreclr,ruben-ayrapetyan/coreclr,neurospeech/coreclr,krk/coreclr,AlexGhiondea/coreclr,cydhaselton/coreclr,cydhaselton/coreclr,poizan42/coreclr,alexperovich/coreclr,qiudesong/coreclr,gkhanna79/coreclr,neurospeech/coreclr,sjsinju/coreclr,poizan42/coreclr,AlexGhiondea/coreclr,neurospeech/coreclr,jamesqo/coreclr,cshung/coreclr,krytarowski/coreclr,rartemev/coreclr,poizan42/coreclr,yizhang82/coreclr,parjong/coreclr,hseok-oh/coreclr,krk/coreclr,jamesqo/coreclr,neurospeech/coreclr,qiudesong/coreclr,kyulee1/coreclr,mskvortsov/coreclr,yizhang82/coreclr,James-Ko/coreclr,russellhadley/coreclr,gkhanna79/coreclr,yeaicc/coreclr,JonHanna/coreclr,qiudesong/coreclr,JosephTremoulet/coreclr,krk/coreclr,cmckinsey/coreclr,yeaicc/coreclr,wtgodbe/coreclr,ruben-ayrapetyan/coreclr,JonHanna/coreclr,botaberg/coreclr,mmitche/coreclr,sagood/coreclr,wtgodbe/coreclr,AlexGhiondea/coreclr,ruben-ayrapetyan/coreclr,sjsinju/coreclr,JonHanna/coreclr,ruben-ayrapetyan/coreclr,wateret/coreclr,parjong/coreclr,mmitche/coreclr,YongseopKim/coreclr,hseok-oh/coreclr,ragmani/coreclr,cydhaselton/coreclr,parjong/coreclr,kyulee1/coreclr,gkhanna79/coreclr,mmitche/coreclr,wtgodbe/coreclr,mmitche/coreclr,yeaicc/coreclr,mskvortsov/coreclr,YongseopKim/coreclr,cydhaselton/coreclr,kyulee1/coreclr,gkhanna79/coreclr,dpodder/coreclr,hseok-oh/coreclr,wtgodbe/coreclr,cydhaselton/coreclr,jamesqo/coreclr,cmckinsey/coreclr,botaberg/coreclr,YongseopKim/coreclr,krytarowski/coreclr,jamesqo/coreclr,russellhadley/coreclr,JosephTremoulet/coreclr,YongseopKim/coreclr,ruben-ayrapetyan/coreclr,rartemev/coreclr,cmckinsey/coreclr,mskvortsov/coreclr,wateret/coreclr,hseok-oh/coreclr,AlexGhiondea/coreclr,krytarowski/coreclr,botaberg/coreclr,ragmani/coreclr,parjong/coreclr,wateret/coreclr,alexperovich/coreclr,sjsinju/coreclr,jamesqo/coreclr,mskvortsov/coreclr,cshung/coreclr,gkhanna79/coreclr,sagood/coreclr,pgavlin/coreclr,JosephTremoulet/coreclr,dpodder/coreclr,tijoytom/coreclr,yeaicc/coreclr,James-Ko/coreclr,tijoytom/coreclr,qiudesong/coreclr,ragmani/coreclr,AlexGhiondea/coreclr,botaberg/coreclr,JosephTremoulet/coreclr,gkhanna79/coreclr,neurospeech/coreclr,russellhadley/coreclr,cmckinsey/coreclr,JonHanna/coreclr,rartemev/coreclr,sagood/coreclr,yizhang82/coreclr,pgavlin/coreclr,yizhang82/coreclr,alexperovich/coreclr,pgavlin/coreclr,tijoytom/coreclr,YongseopKim/coreclr,dpodder/coreclr,botaberg/coreclr,parjong/coreclr,hseok-oh/coreclr,dpodder/coreclr,alexperovich/coreclr,ragmani/coreclr,sjsinju/coreclr,sjsinju/coreclr,yizhang82/coreclr,yeaicc/coreclr,rartemev/coreclr,ragmani/coreclr,pgavlin/coreclr,krytarowski/coreclr,wateret/coreclr,alexperovich/coreclr,krk/coreclr,poizan42/coreclr,neurospeech/coreclr,cshung/coreclr,qiudesong/coreclr,YongseopKim/coreclr,krk/coreclr,kyulee1/coreclr,cmckinsey/coreclr,James-Ko/coreclr,krytarowski/coreclr,rartemev/coreclr,hseok-oh/coreclr,alexperovich/coreclr,cmckinsey/coreclr,mskvortsov/coreclr,James-Ko/coreclr,JonHanna/coreclr,kyulee1/coreclr,wtgodbe/coreclr,russellhadley/coreclr,JosephTremoulet/coreclr,mskvortsov/coreclr,sagood/coreclr,tijoytom/coreclr,AlexGhiondea/coreclr,sjsinju/coreclr,dpodder/coreclr,tijoytom/coreclr,poizan42/coreclr,qiudesong/coreclr,dpodder/coreclr,jamesqo/coreclr,pgavlin/coreclr,pgavlin/coreclr,sagood/coreclr,ragmani/coreclr,cydhaselton/coreclr,cmckinsey/coreclr,parjong/coreclr,krk/coreclr,krytarowski/coreclr,poizan42/coreclr,ruben-ayrapetyan/coreclr,cshung/coreclr,yeaicc/coreclr,yizhang82/coreclr,russellhadley/coreclr,mmitche/coreclr,kyulee1/coreclr,tijoytom/coreclr,yeaicc/coreclr,James-Ko/coreclr,russellhadley/coreclr,botaberg/coreclr,wateret/coreclr,mmitche/coreclr,rartemev/coreclr,cshung/coreclr,JonHanna/coreclr,wateret/coreclr,JosephTremoulet/coreclr,wtgodbe/coreclr,James-Ko/coreclr