Skip to content

Commit ab30ec7

Browse files
authored
JIT: avoid some unnecessary retyping in escape analysis (#116277)
We may discover a TYP_BYREF local can point to stack objects, in which case it will remain a TYP_BYREF local, so no retyping is needed. Fixes #116213
1 parent a3f5189 commit ab30ec7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coreclr/jit/objectalloc.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,6 +2803,11 @@ void ObjectAllocator::RewriteUses()
28032803
varTypeName(newType));
28042804
lclVarDsc->lvType = newType;
28052805
}
2806+
else
2807+
{
2808+
JITDUMP("V%02u already properly typed\n", lclNum);
2809+
lclVarDsc->lvTracked = 0;
2810+
}
28062811
}
28072812
}
28082813

0 commit comments

Comments
 (0)