Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 3 additions & 9 deletions src/coreclr/jit/fgprofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2949,8 +2949,8 @@ PhaseStatus Compiler::fgIncorporateProfileData()
//
if (fgPgoHaveWeights && !dataIsGood)
{
JITDUMP("\nIncorporated count data had inconsistencies; blending profile...\n");
ProfileSynthesis::Run(this, ProfileSynthesisOption::BlendLikelihoods);
JITDUMP("\nIncorporated count data had inconsistencies; repairing profile...\n");
ProfileSynthesis::Run(this, ProfileSynthesisOption::RepairLikelihoods);
}
}

Expand Down Expand Up @@ -3266,15 +3266,9 @@ class EfficientEdgeCountReconstructor : public SpanningTreeVisitor

// Are there are reparable issues with the reconstruction?
//
// Ideally we'd also have || !m_negativeCount here, but this
// leads to lots of diffs in async methods.
//
// Looks like we might first need to resolve reconstruction
// shortcomings with irreducible loops.
//
bool IsGood() const
{
return !m_entryWeightZero;
return !(m_entryWeightZero || m_negativeCount);
}

void VisitBlock(BasicBlock*) override
Expand Down
Loading