From dab4f71783e75b59ea5a657fa28ebca7ff5168fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Petryka?= <35800402+MichalPetryka@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:59:25 +0200 Subject: [PATCH] Remove ldsfld quirk Alternative to spilling changes in #108579 --- src/coreclr/jit/importer.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/coreclr/jit/importer.cpp b/src/coreclr/jit/importer.cpp index a9d7dadf2bddc..6afe598fb877d 100644 --- a/src/coreclr/jit/importer.cpp +++ b/src/coreclr/jit/importer.cpp @@ -9420,11 +9420,6 @@ void Compiler::impImportBlockCode(BasicBlock* block) lclTyp = TypeHandleToVarType(fieldInfo.fieldType, clsHnd, &layout); op1 = (lclTyp == TYP_STRUCT) ? gtNewBlkIndir(layout, op1, indirFlags) : gtNewIndir(lclTyp, op1, indirFlags); - if ((indirFlags & GTF_IND_INVARIANT) != 0) - { - // TODO-ASG: delete this zero-diff quirk. - op1->gtFlags |= GTF_GLOB_REF; - } impAnnotateFieldIndir(op1->AsIndir()); }