@@ -2963,21 +2963,6 @@ PhaseStatus Compiler::fgIncorporateProfileData()
2963
2963
return PhaseStatus::MODIFIED_EVERYTHING;
2964
2964
}
2965
2965
2966
- // ------------------------------------------------------------------------
2967
- // fgSetProfileWeight: set profile weight for a block
2968
- //
2969
- // Arguments:
2970
- // block -- block in question
2971
- // profileWeight -- raw profile weight (not accounting for inlining)
2972
- //
2973
- // Notes:
2974
- // Does inlinee scaling.
2975
- //
2976
- void Compiler::fgSetProfileWeight (BasicBlock* block, weight_t profileWeight)
2977
- {
2978
- block->setBBProfileWeight (profileWeight);
2979
- }
2980
-
2981
2966
// ------------------------------------------------------------------------
2982
2967
// fgIncorporateBlockCounts: read block count based profile data
2983
2968
// and set block weights
@@ -3006,7 +2991,7 @@ bool Compiler::fgIncorporateBlockCounts()
3006
2991
3007
2992
if (fgGetProfileWeightForBasicBlock (block->bbCodeOffs , &profileWeight))
3008
2993
{
3009
- fgSetProfileWeight ( block, profileWeight);
2994
+ block-> setBBProfileWeight ( profileWeight);
3010
2995
}
3011
2996
}
3012
2997
@@ -3784,7 +3769,7 @@ void EfficientEdgeCountReconstructor::Propagate()
3784
3769
{
3785
3770
BlockInfo* const info = BlockToInfo (block);
3786
3771
assert (info->m_weightKnown );
3787
- m_comp-> fgSetProfileWeight (block, info->m_weight );
3772
+ block-> setBBProfileWeight ( info->m_weight );
3788
3773
3789
3774
const unsigned nSucc = block->NumSucc (m_comp);
3790
3775
if (nSucc == 0 )
@@ -5117,7 +5102,7 @@ void Compiler::fgRepairProfileCondToUncond(BasicBlock* block,
5117
5102
5118
5103
if (target->hasProfileWeight ())
5119
5104
{
5120
- target->setBBProfileWeight (target-> bbWeight + weight);
5105
+ target->increaseBBProfileWeight ( weight);
5121
5106
}
5122
5107
else
5123
5108
{
0 commit comments