> Hi,
> 
> Fix ICE with AutoFDO by adding initialization check
> before accessing IPA counts to avoid issues with uninitialized profile
> counts in self-recursive clone processing.

+             n->make_profile_local ();
+             if (n->count.quality () == AFDO)
+               n->make_profile_global0 (GUESSED_GLOBAL0_AFDO);
+             else
+               n->make_profile_global0 (GUESSED_GLOBAL0_ADJUSTED);

make_profile_local will set quality to GUESSED_LOCAL (or keep
UNINITIALIZED), so the conditional afterwards is never taken.
What is the intention here?

Honza
> 
> Thanks,
> Kugan
> 


Reply via email to