Skip to content

Commit

Permalink
Remove the local morph quirk with block locals (dotnet#99209)
Browse files Browse the repository at this point in the history
This should not be necessary anymore.
  • Loading branch information
SingleAccretion authored Mar 4, 2024
1 parent 23b4030 commit c160af8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/coreclr/jit/lclmorph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,15 +823,6 @@ class LocalAddressVisitor final : public GenTreeVisitor<LocalAddressVisitor>
else
{
isWide = endOffset.Value() > m_compiler->lvaLclExactSize(lclNum);

if ((varDsc->TypeGet() == TYP_STRUCT) && varDsc->GetLayout()->IsBlockLayout())
{
// TODO-CQ: TYP_BLK used to always be exposed here. This is in principle not necessary, but
// not doing so would require VN changes. For now, exposing gets better CQ as otherwise the
// variable ends up untracked and VN treats untracked-not-exposed locals more conservatively
// than exposed ones.
m_compiler->lvaSetVarAddrExposed(lclNum DEBUGARG(AddressExposedReason::TOO_CONSERVATIVE));
}
}
}

Expand Down

0 comments on commit c160af8

Please sign in to comment.