Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT: enable profile repairs of OSR entry block weight is zero #86011

Merged
merged 1 commit into from
May 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/coreclr/jit/fgprofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,7 @@ void EfficientEdgeCountReconstructor::Propagate()
// for the OSR entry block.
//
// Arguments:
// block - block in question
// block - block in question (OSR entry)
// info - model info for the block
// nSucc - number of successors of the block in the flow graph
//
Expand Down Expand Up @@ -3666,7 +3666,13 @@ void EfficientEdgeCountReconstructor::PropagateOSREntryEdges(BasicBlock* block,
}

assert(nEdges == nSucc);
assert(info->m_weight > BB_ZERO_WEIGHT);

if (info->m_weight == BB_ZERO_WEIGHT)
{
JITDUMP("\nPropagate: OSR entry block weight is zero\n");
EntryWeightZero();
return;
}

// Transfer model edge weight onto the FlowEdges as likelihoods.
//
Expand Down