Skip to content

Commit 863c66b

Browse files
Delete (unsigned)CHECK_SPILL_ALL|NONE casts
1 parent d8eacf6 commit 863c66b

9 files changed

Lines changed: 152 additions & 160 deletions

File tree

src/coreclr/jit/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3824,7 +3824,7 @@ class Compiler
38243824
void impInsertTreeBefore(GenTree* tree, const DebugInfo& di, Statement* stmtBefore);
38253825
void impAssignTempGen(unsigned tmp,
38263826
GenTree* val,
3827-
unsigned curLevel = (unsigned)CHECK_SPILL_NONE,
3827+
unsigned curLevel = CHECK_SPILL_NONE,
38283828
Statement** pAfterStmt = nullptr,
38293829
const DebugInfo& di = DebugInfo(),
38303830
BasicBlock* block = nullptr);

src/coreclr/jit/fginline.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ Statement* Compiler::fgInlinePrependStatements(InlineInfo* inlineInfo)
16151615
// argTmpNum here since in-linee compiler instance
16161616
// would have iterated over these and marked them
16171617
// accordingly.
1618-
impAssignTempGen(tmpNum, argNode, structHnd, (unsigned)CHECK_SPILL_NONE, &afterStmt, callDI, block);
1618+
impAssignTempGen(tmpNum, argNode, structHnd, CHECK_SPILL_NONE, &afterStmt, callDI, block);
16191619

16201620
// We used to refine the temp type here based on
16211621
// the actual arg, but we now do this up front, when
@@ -1822,8 +1822,8 @@ Statement* Compiler::fgInlinePrependStatements(InlineInfo* inlineInfo)
18221822
{
18231823
// Unsafe value cls check is not needed here since in-linee compiler instance would have
18241824
// iterated over locals and marked accordingly.
1825-
impAssignTempGen(tmpNum, gtNewZeroConNode(genActualType(lclTyp)), NO_CLASS_HANDLE,
1826-
(unsigned)CHECK_SPILL_NONE, &afterStmt, callDI, block);
1825+
impAssignTempGen(tmpNum, gtNewZeroConNode(genActualType(lclTyp)), NO_CLASS_HANDLE, CHECK_SPILL_NONE,
1826+
&afterStmt, callDI, block);
18271827
}
18281828
else
18291829
{

src/coreclr/jit/gentree.cpp

Lines changed: 52 additions & 55 deletions
Large diffs are not rendered by default.

src/coreclr/jit/hwintrinsic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ GenTree* Compiler::addRangeCheckForHWIntrinsic(GenTree* immOp, int immLowerBound
607607

608608
GenTree* immOpDup = nullptr;
609609

610-
immOp = impCloneExpr(immOp, &immOpDup, NO_CLASS_HANDLE, (unsigned)CHECK_SPILL_ALL,
610+
immOp = impCloneExpr(immOp, &immOpDup, NO_CLASS_HANDLE, CHECK_SPILL_ALL,
611611
nullptr DEBUGARG("Clone an immediate operand for immediate value bounds check"));
612612

613613
if (immLowerBound != 0)

src/coreclr/jit/hwintrinsicarm64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,
957957
{
958958
CORINFO_CLASS_HANDLE simdClsHnd = gtGetStructHandleForSIMD(simdType, simdBaseJitType);
959959

960-
op1 = impCloneExpr(op1, &op2, simdClsHnd, (unsigned)CHECK_SPILL_ALL,
960+
op1 = impCloneExpr(op1, &op2, simdClsHnd, CHECK_SPILL_ALL,
961961
nullptr DEBUGARG("Clone op1 for vector extractmostsignificantbits"));
962962

963963
op1 = gtNewSimdHWIntrinsicNode(TYP_SIMD8, op1, NI_Vector128_GetLower, simdBaseJitType, simdSize,
@@ -992,7 +992,7 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,
992992
{
993993
CORINFO_CLASS_HANDLE simdClsHnd = gtGetStructHandleForSIMD(simdType, simdBaseJitType);
994994

995-
op1 = impCloneExpr(op1, &op2, simdClsHnd, (unsigned)CHECK_SPILL_ALL,
995+
op1 = impCloneExpr(op1, &op2, simdClsHnd, CHECK_SPILL_ALL,
996996
nullptr DEBUGARG("Clone op1 for vector extractmostsignificantbits"));
997997
op1 = gtNewSimdHWIntrinsicNode(TYP_SIMD8, op1, op2, NI_AdvSimd_AddPairwise, simdBaseJitType,
998998
simdSize, /* isSimdAsHWIntrinsic */ false);
@@ -1810,7 +1810,7 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,
18101810
assert(HWIntrinsicInfo::IsMultiReg(intrinsic));
18111811

18121812
const unsigned lclNum = lvaGrabTemp(true DEBUGARG("Return value temp for multireg intrinsic"));
1813-
impAssignTempGen(lclNum, loadIntrinsic, sig->retTypeSigClass, (unsigned)CHECK_SPILL_ALL);
1813+
impAssignTempGen(lclNum, loadIntrinsic, sig->retTypeSigClass, CHECK_SPILL_ALL);
18141814

18151815
LclVarDsc* varDsc = lvaGetDesc(lclNum);
18161816
// The following is to exclude the fields of the local to have SSA.

src/coreclr/jit/hwintrinsicxarch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@ GenTree* Compiler::impSSEIntrinsic(NamedIntrinsic intrinsic, CORINFO_METHOD_HAND
25402540
else
25412541
{
25422542
GenTree* clonedOp1 = nullptr;
2543-
op1 = impCloneExpr(op1, &clonedOp1, NO_CLASS_HANDLE, (unsigned)CHECK_SPILL_ALL,
2543+
op1 = impCloneExpr(op1, &clonedOp1, NO_CLASS_HANDLE, CHECK_SPILL_ALL,
25442544
nullptr DEBUGARG("Clone op1 for Sse.CompareScalarGreaterThan"));
25452545

25462546
retNode = gtNewSimdHWIntrinsicNode(TYP_SIMD16, op2, op1, intrinsic, simdBaseJitType, simdSize);
@@ -2620,7 +2620,7 @@ GenTree* Compiler::impSSE2Intrinsic(NamedIntrinsic intrinsic, CORINFO_METHOD_HAN
26202620
else
26212621
{
26222622
GenTree* clonedOp1 = nullptr;
2623-
op1 = impCloneExpr(op1, &clonedOp1, NO_CLASS_HANDLE, (unsigned)CHECK_SPILL_ALL,
2623+
op1 = impCloneExpr(op1, &clonedOp1, NO_CLASS_HANDLE, CHECK_SPILL_ALL,
26242624
nullptr DEBUGARG("Clone op1 for Sse2.CompareScalarGreaterThan"));
26252625

26262626
retNode = gtNewSimdHWIntrinsicNode(TYP_SIMD16, op2, op1, intrinsic, simdBaseJitType, simdSize);

0 commit comments

Comments
 (0)