Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Nov 11, 2023
1 parent 42146f6 commit 17b1a17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/coreclr/jit/hwintrinsicxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1817,8 +1817,6 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,
if ((simdSize != 32) || varTypeIsFloating(simdBaseType) ||
compOpportunisticallyDependsOn(InstructionSet_AVX2))
{
var_types simdType = getSIMDTypeForSize(simdSize);

op2 = impSIMDPopStack();
op1 = impSIMDPopStack();

Expand All @@ -1835,8 +1833,6 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,

if ((simdSize != 32) || compOpportunisticallyDependsOn(InstructionSet_AVX2))
{
var_types simdType = getSIMDTypeForSize(simdSize);

op2 = impSIMDPopStack();
op1 = impSIMDPopStack();

Expand All @@ -1854,8 +1850,6 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,

if (IsBaselineVector512IsaSupportedOpportunistically())
{
var_types simdType = getSIMDTypeForSize(simdSize);

op1 = impSIMDPopStack();
op1 =
gtNewSimdHWIntrinsicNode(TYP_MASK, op1, NI_AVX512F_ConvertVectorToMask, simdBaseJitType, simdSize);
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/vartype.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ inline bool varTypeIsArithmetic(T vt)
template <class T>
inline bool varTypeIsGC(T vt)
{
return (TypeGet(vt) == TYP_REF) || (TypeGet(vt) == TYP_BYREF);
return ((varTypeClassification[TypeGet(vt)] & (VTF_GCR | VTF_BYR)) != 0);
}

template <class T>
Expand Down

0 comments on commit 17b1a17

Please sign in to comment.