If the PGO solver finds the OSR entry block weight is zero, schedule the
method for profile repairs (similar to what we do for normal methods when
the method entry block weight is zero, see #84312).
Fixes #85838.
// 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
//
}
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.
//