Uh oh!
There was an error while loading. Please reload this page.
Delete some unnecessary code - #74527
Conversation
ghost
commented
Aug 24, 2022
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsThree commits:
|
This was originally put in place to allow the corresponding codegen changes to be tested. Now that we have more than adequate coverage from the front-end transformations, we can simply delete the code.
We don't expect any OBJs here.
39110ff to
146d259CompareSingleAccretion
commented
Aug 25, 2022
@dotnet/jit-contrib |
AndyAyersMS
commented
Sep 12, 2022
@kunalspathak can you review? |
kunalspathak
commented
Sep 13, 2022
I am not much familiar with this code lately. Can you elaborate in PR comments why explicit simplification is not needed now? |
SingleAccretion
commented
Sep 13, 2022
Essentially, we are now folding this pattern in local morph, and so don't need the additional checks. Eventually, almost all such checks will be deleted from the codebase; this is a start. |
| { | ||
| if (m_dst->OperIs(GT_OBJ)) | ||
| { | ||
| GenTreeLclVar* lclVar = m_comp->fgMorphTryFoldObjAsLclVar(m_dst->AsObj()); |
| // First, handle the GT_OBJ case, which loads into the arg register | ||
| // (so we don't set the use to prefer that register for the source address). | ||
| if (op1->OperIs(GT_OBJ)) |
| #endif // !TARGET_X86 | ||
| } | ||
| if (src->OperIs(GT_OBJ) && src->AsObj()->Addr()->OperIsLocalAddr()) |
| // STRUCT args (FIELD_LIST / OBJ / LCL_VAR / LCL_FLD) will always be contained. | ||
| MakeSrcContained(putArgNode, src); | ||
| // TODO-ADDR: always perform this transformation in local morph and delete this code. |
kunalspathak
commented
Sep 13, 2022
Great...thank you. I am not able to access the |
SingleAccretion
commented
Sep 13, 2022
There are no diffs outside of
|
Three commits:
OBJ(ADDR(LCL_VAR))anymore. No diffs.Diffs.