@@ -558,10 +558,7 @@ void DefaultPolicy::DumpXml(FILE* file, unsigned indent) const
558
558
XATTR_I4 (m_CallsiteDepth);
559
559
XATTR_I4 (m_InstructionCount);
560
560
XATTR_I4 (m_LoadStoreCount);
561
- XATTR_I4 (m_ArgFeedsTest);
562
- XATTR_I4 (m_ArgFeedsConstantTest);
563
561
XATTR_I4 (m_ArgFeedsRangeCheck);
564
- XATTR_I4 (m_ConstantArgFeedsConstantTest);
565
562
XATTR_I4 (m_BinaryExprWithCns);
566
563
XATTR_I4 (m_ArgCasted);
567
564
XATTR_I4 (m_ArgIsStructByValue);
@@ -849,7 +846,7 @@ double DefaultPolicy::DetermineMultiplier()
849
846
850
847
if (m_IsFromValueClass)
851
848
{
852
- multiplier += 3 ;
849
+ multiplier += 5.0 ;
853
850
JITDUMP (" \n multiplier in methods of struct increased to %g." , multiplier);
854
851
}
855
852
@@ -885,7 +882,7 @@ double DefaultPolicy::DetermineMultiplier()
885
882
if (m_ReturnsStructByValue)
886
883
{
887
884
// For structs-passed-by-value we might avoid expensive copy operations if we inline
888
- multiplier += 2 .0 ;
885
+ multiplier += 5 .0 ;
889
886
JITDUMP (" \n Inline candidate returns a struct by value. Multiplier increased to %g." , multiplier);
890
887
}
891
888
@@ -912,7 +909,7 @@ double DefaultPolicy::DetermineMultiplier()
912
909
// if (Math.Abs(arg0) > 10) { // same here
913
910
// etc.
914
911
//
915
- multiplier += 4.0 + m_FoldableBranch;
912
+ multiplier += 4.0 + m_FoldableBranch * 1.5 ;
916
913
JITDUMP (" \n Inline candidate has %d foldable branches. Multiplier increased to %g." , m_FoldableBranch,
917
914
multiplier);
918
915
}
@@ -926,10 +923,10 @@ double DefaultPolicy::DetermineMultiplier()
926
923
927
924
if (m_FldAccessOverArgStruct > 0 )
928
925
{
929
- multiplier += m_ArgCasted;
926
+ multiplier += 2.0 + m_ArgCasted;
930
927
// Such ldfld/stfld are cheap for promotable structs
931
928
JITDUMP (" \n %d ldfld or stfld over arguments which are structs. Multiplier increased to %g." ,
932
- m_ArgIsStructByValue , multiplier);
929
+ m_FldAccessOverArgStruct , multiplier);
933
930
}
934
931
935
932
if (m_FoldableBox > 0 )
@@ -956,7 +953,7 @@ double DefaultPolicy::DetermineMultiplier()
956
953
// ceq
957
954
//
958
955
// so at least we can note potential constant tests
959
- multiplier += 1 .5 + m_BinaryExprWithCns;
956
+ multiplier += 2 .5 + m_BinaryExprWithCns;
960
957
JITDUMP (" \n Inline candidate has %d binary expressions with constants. Multiplier increased to %g." ,
961
958
m_BinaryExprWithCns, multiplier);
962
959
}
@@ -2364,10 +2361,8 @@ void DiscretionaryPolicy::DumpData(FILE* file) const
2364
2361
fprintf (file, " ,%u" , m_IsFromPromotableValueClass ? 1 : 0 );
2365
2362
fprintf (file, " ,%u" , m_HasSimd ? 1 : 0 );
2366
2363
fprintf (file, " ,%u" , m_LooksLikeWrapperMethod ? 1 : 0 );
2367
- fprintf (file, " ,%u" , m_ArgFeedsConstantTest);
2368
2364
fprintf (file, " ,%u" , m_MethodIsMostlyLoadStore ? 1 : 0 );
2369
2365
fprintf (file, " ,%u" , m_ArgFeedsRangeCheck);
2370
- fprintf (file, " ,%u" , m_ConstantArgFeedsConstantTest);
2371
2366
fprintf (file, " ,%d" , m_CalleeNativeSizeEstimate);
2372
2367
fprintf (file, " ,%d" , m_CallsiteNativeSizeEstimate);
2373
2368
fprintf (file, " ,%d" , m_ModelCodeSizeEstimate);
0 commit comments