Skip to content

Consider fully replacing BBF_RUN_RARELY with the weight of 0 #48778

@SingleAccretion

Description

@SingleAccretion

I see that most code clearing this flag is doing the moral equivalent of the following:

block->bbWeight = weight;
if (weight > 0)
{
    block->bbFlags &= ~BBF_RUN_RARELY;
}

Perhaps it would be feasible to avoid writing this code and just use bbWeight == 0.0f (bbSetRunRarely/isRunRarely) everywhere instead?

cc @AndyAyersMS

Edit: label addition was not intended :(.

category:cq
theme:profile-feedback

Metadata

Metadata

Assignees

Labels

Priority:3Work that is nice to havearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is mergedtenet-performancePerformance related issue

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions