@@ -2963,21 +2963,6 @@ PhaseStatus Compiler::fgIncorporateProfileData()
29632963    return  PhaseStatus::MODIFIED_EVERYTHING;
29642964}
29652965
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- 
29812966// ------------------------------------------------------------------------
29822967//  fgIncorporateBlockCounts: read block count based profile data
29832968//    and set block weights
@@ -3006,7 +2991,7 @@ bool Compiler::fgIncorporateBlockCounts()
30062991
30072992        if  (fgGetProfileWeightForBasicBlock (block->bbCodeOffs , &profileWeight))
30082993        {
3009-             fgSetProfileWeight ( block,  profileWeight);
2994+             block-> setBBProfileWeight ( profileWeight);
30102995        }
30112996    }
30122997
@@ -3784,7 +3769,7 @@ void EfficientEdgeCountReconstructor::Propagate()
37843769    {
37853770        BlockInfo* const  info = BlockToInfo (block);
37863771        assert (info->m_weightKnown );
3787-         m_comp-> fgSetProfileWeight (block,  info->m_weight );
3772+         block-> setBBProfileWeight ( info->m_weight );
37883773
37893774        const  unsigned  nSucc = block->NumSucc (m_comp);
37903775        if  (nSucc == 0 )
@@ -5117,7 +5102,7 @@ void Compiler::fgRepairProfileCondToUncond(BasicBlock* block,
51175102
51185103    if  (target->hasProfileWeight ())
51195104    {
5120-         target->setBBProfileWeight (target-> bbWeight  +  weight);
5105+         target->increaseBBProfileWeight ( weight);
51215106    }
51225107    else 
51235108    {
0 commit comments