Skip to content
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