-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fixes for text-based PGO #56986
Fixes for text-based PGO #56986
Conversation
Fix missing indirection when reading in text-based PGO data. Prioiritize reading text-based PGO over dynamic or static PGO data, so that we can use text to provide a fixed set of PGO data when trying to isolate bugs. In the jit, give text-based PGO data the same trust level we give to dynamic PGO data.
@davidwrighton PTAL I used this to pin down the bad method over in #56689. I had an intermittent repro that failed with dynamic PGO; trying to bisect via |
src/coreclr/jit/inlinepolicy.cpp
Outdated
@@ -1684,7 +1685,8 @@ double ExtendedDefaultPolicy::DetermineMultiplier() | |||
const double profileTrustCoef = (double)JitConfig.JitExtDefaultPolicyProfTrust() / 10.0; | |||
const double profileScale = (double)JitConfig.JitExtDefaultPolicyProfScale() / 10.0; | |||
|
|||
if (m_RootCompiler->fgPgoSource == ICorJitInfo::PgoSource::Dynamic) | |||
if ((m_RootCompiler->fgPgoSource == ICorJitInfo::PgoSource::Dynamic) || | |||
(m_RootCompiler->fgPgoSource == ICorJitInfo::PgoSource::Text)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a IsPgoSourceTrustworthy
(or similar) function for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, seems like a good idea.
Fix missing indirection when reading in text-based PGO data.
Prioiritize reading text-based PGO over dynamic or static PGO data, so that we
can use text to provide a fixed set of PGO data when trying to isolate bugs.
In the jit, give text-based PGO data the same trust level we give to dynamic
PGO data.