Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TIHan committed Jun 11, 2024
1 parent 2f4db44 commit 086ebd3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/jit/hwintrinsiccodegenarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ void CodeGen::genHWIntrinsic(GenTreeHWIntrinsic* node)
}
else if (intrin.category == HW_Category_Special)
{
assert(intrin.id == NI_ArmBase_Yield);

emitSize = EA_UNKNOWN;
opt = INS_OPTS_NONE;
}
Expand Down
1 change: 1 addition & 0 deletions src/coreclr/jit/instr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@ instruction CodeGen::ins_Move_Extend(var_types srcType, bool srcInReg)
#if defined(TARGET_XARCH)
return INS_kmovq_msk;
#elif defined(TARGET_ARM64)
//unreached(); // TODO-SVE: This needs testing
return INS_sve_mov;
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,7 @@ void CallArgs::AddFinalArgsAndDetermineABIInfo(Compiler* comp, GenTreeCall* call

bool isBackFilled = false;
unsigned nextFltArgRegNum = fltArgRegNum; // This is the next floating-point argument register number to use
bool isStructArg = varTypeIsStruct(argSigType) && !varTypeIsMask(argx->gtEffectiveVal());
bool isStructArg = varTypeIsStruct(argSigType);
var_types structBaseType = TYP_STRUCT;
unsigned structSize = 0;
bool passStructByRef = false;
Expand Down Expand Up @@ -3178,7 +3178,7 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call)
argx->gtType = TYP_I_IMPL;
}

bool isStructArg = varTypeIsStruct(arg.GetSignatureType()) && !varTypeIsMask(arg.GetSignatureType());
bool isStructArg = varTypeIsStruct(arg.GetSignatureType());
GenTree* argObj = argx->gtEffectiveVal();
bool makeOutArgCopy = false;

Expand Down
6 changes: 1 addition & 5 deletions src/coreclr/jit/rationalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ void Rationalizer::RewriteNodeAsCall(GenTree** use,
assert(!operand->OperIsFieldList());

sigTyp = comp->impNormStructType(clsHnd);
if (varTypeIsMask(operand) && varTypeIsSIMD(sigTyp))
{
sigTyp = TYP_MASK;
}
arg = NewCallArg::Struct(operand, sigTyp, clsHnd);
arg = NewCallArg::Struct(operand, sigTyp, clsHnd);
}
else
{
Expand Down

0 comments on commit 086ebd3

Please sign in to comment.