Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Combine the condition
  • Loading branch information
kunalspathak authored and github-actions committed Sep 3, 2021
commit b63cc87fda2dd77a7abff61bc17ef82fcf97edba
9 changes: 3 additions & 6 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13997,13 +13997,10 @@ GenTree* Compiler::fgMorphRetInd(GenTreeUnOp* ret)

if (addr->OperIs(GT_ADDR) && addr->gtGetOp1()->OperIs(GT_LCL_VAR))
{
if (fgGlobalMorph)
// If struct promotion was undone, adjust the annotations
if (fgGlobalMorph && fgMorphImplicitByRefArgs(addr))
{
// If struct promotion was undone, adjust the annotations
if (fgMorphImplicitByRefArgs(addr))
{
return ind;
}
return ind;
}

// If `return` retypes LCL_VAR as a smaller struct it should not set `doNotEnregister` on that
Expand Down