From c160af8b0caa3d96e3630898210f524c2a31bb91 Mon Sep 17 00:00:00 2001 From: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:07:04 +0300 Subject: [PATCH] Remove the local morph quirk with block locals (#99209) This should not be necessary anymore. --- src/coreclr/jit/lclmorph.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/coreclr/jit/lclmorph.cpp b/src/coreclr/jit/lclmorph.cpp index 7ebba3c14bdca..141acdaf84141 100644 --- a/src/coreclr/jit/lclmorph.cpp +++ b/src/coreclr/jit/lclmorph.cpp @@ -823,15 +823,6 @@ class LocalAddressVisitor final : public GenTreeVisitor 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)); - } } }