Skip to content

Commit 2cbaca1

Browse files
Delete (unsigned)CHECK_SPILL_ALL|NONE casts (#72889)
1 parent fb4772f commit 2cbaca1

File tree

9 files changed

+152
-160
lines changed

9 files changed

+152
-160
lines changed

src/coreclr/jit/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3808,7 +3808,7 @@ class Compiler
38083808
void impInsertTreeBefore(GenTree* tree, const DebugInfo& di, Statement* stmtBefore);
38093809
void impAssignTempGen(unsigned tmp,
38103810
GenTree* val,
3811-
unsigned curLevel = (unsigned)CHECK_SPILL_NONE,
3811+
unsigned curLevel = CHECK_SPILL_NONE,
38123812
Statement** pAfterStmt = nullptr,
38133813
const DebugInfo& di = DebugInfo(),
38143814
BasicBlock* block = nullptr);

src/coreclr/jit/fginline.cpp

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

15751575
// We used to refine the temp type here based on
15761576
// the actual arg, but we now do this up front, when
@@ -1777,8 +1777,8 @@ Statement* Compiler::fgInlinePrependStatements(InlineInfo* inlineInfo)
17771777
{
17781778
// Unsafe value cls check is not needed here since in-linee compiler instance would have
17791779
// iterated over locals and marked accordingly.
1780-
impAssignTempGen(tmpNum, gtNewZeroConNode(genActualType(lclTyp)), NO_CLASS_HANDLE,
1781-
(unsigned)CHECK_SPILL_NONE, &afterStmt, callDI, block);
1780+
impAssignTempGen(tmpNum, gtNewZeroConNode(genActualType(lclTyp)), NO_CLASS_HANDLE, CHECK_SPILL_NONE,
1781+
&afterStmt, callDI, block);
17821782
}
17831783
else
17841784
{

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)