Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b09c77a

Browse files
committed
[Arm64] SIMD morph varTypeIsStruct
1 parent cdf5900 commit b09c77a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jit/morph.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ void fgArgInfo::ArgsComplete()
16081608
bool isMultiRegArg = (curArgTabEntry->numRegs > 1);
16091609
#endif
16101610

1611-
if ((argx->TypeGet() == TYP_STRUCT) && (curArgTabEntry->needTmp == false))
1611+
if ((varTypeIsStruct(argx->TypeGet())) && (curArgTabEntry->needTmp == false))
16121612
{
16131613
if (isMultiRegArg && ((argx->gtFlags & GTF_PERSISTENT_SIDE_EFFECTS) != 0))
16141614
{
@@ -3856,7 +3856,7 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call)
38563856

38573857
#endif // not _TARGET_X86_
38583858
// We still have a struct unless we converted the GT_OBJ into a GT_IND above...
3859-
if ((structBaseType == TYP_STRUCT) &&
3859+
if (varTypeIsStruct(structBaseType) &&
38603860
#if defined(FEATURE_UNIX_AMD64_STRUCT_PASSING)
38613861
!passStructInRegisters
38623862
#else // !defined(FEATURE_UNIX_AMD64_STRUCT_PASSING)
@@ -6275,7 +6275,7 @@ GenTreePtr Compiler::fgMorphStackArgForVarArgs(unsigned lclNum, var_types varTyp
62756275

62766276
// Access the argument through the local
62776277
GenTreePtr tree;
6278-
if (varType == TYP_STRUCT)
6278+
if (varTypeIsStruct(varType))
62796279
{
62806280
tree = gtNewBlockVal(ptrArg, varDsc->lvExactSize);
62816281
}

0 commit comments

Comments
 (0)