Skip to content

Commit 2bc4a9d

Browse files
authored
[JIT] Allow new temp assignment whose dstTyp is TYP_I_IMPL and valTyp is TYP_BYREF (#79162)
* Allow temp assignment whose dstTyp is TYP_I_IMPL and valTyp is GC * Only do this for byref
1 parent 1fa5485 commit 2bc4a9d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/coreclr/jit/gentree.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15663,6 +15663,11 @@ GenTree* Compiler::gtNewTempAssign(
1566315663
{
1566415664
ok = true;
1566515665
}
15666+
// - TYP_I_IMPL = TYP_BYREF
15667+
else if ((dstTyp == TYP_I_IMPL) && (valTyp == TYP_BYREF))
15668+
{
15669+
ok = true;
15670+
}
1566615671
// - TYP_BYREF = TYP_REF when object stack allocation is enabled
1566715672
else if (JitConfig.JitObjectStackAllocation() && (dstTyp == TYP_BYREF) && (valTyp == TYP_REF))
1566815673
{

0 commit comments

Comments
 (0)