Skip to content

Commit

Permalink
Contain PUTARG_STK sources for "push [mem]"
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion committed Mar 31, 2022
1 parent b40a852 commit db08d4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/coreclr/jit/lowerxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,14 @@ void Lowering::LowerPutArgStk(GenTreePutArgStk* putArgStk)
{
MakeSrcContained(putArgStk, src);
}
#ifdef TARGET_X86
else if ((genTypeSize(src) == TARGET_POINTER_SIZE) && IsContainableMemoryOp(src) &&
IsSafeToContainMem(putArgStk, src))
{
// Contain for "push [mem]".
MakeSrcContained(putArgStk, src);
}
#endif // TARGET_X86
}

/* Lower GT_CAST(srcType, DstType) nodes.
Expand Down

0 comments on commit db08d4d

Please sign in to comment.