Re: [PATCH 4/4] ipa-cp: Select saner profile count to base heuristics on

2021-10-27 Thread Martin Jambor
Hi, On Mon, Oct 18 2021, Martin Jambor wrote: > [...] > > > This is a follow-up small patch to address Honza's review of my > previous patch to select saner profile count to base heuristics on. > Currently the IPA-CP heuristics switch to PGO-mode only if there are > PGO counters available for any

Re: [PATCH 4/4] ipa-cp: Select saner profile count to base heuristics on

2021-10-27 Thread Martin Jambor
Hi, On Mon, Aug 23 2021, Martin Jambor wrote: > When profile feedback is available, IPA-CP takes the count of the > hottest node and then evaluates all call contexts relative to it. > This means that typically almost no clones for specialized contexts > are ever created because the maximum is some

Re: [PATCH 4/4] ipa-cp: Select saner profile count to base heuristics on

2021-10-18 Thread Martin Jambor
Hi, On Wed, Oct 06 2021, Jan Hubicka wrote: >> 2021-08-23 Martin Jambor >> >> * params.opt (param_ipa_cp_profile_count_base): New parameter. >> * ipa-cp.c (max_count): Replace with base_count, replace all >> occurrences too, unless otherwise stated. >> (ipcp_cloning_candida

Re: [PATCH 4/4] ipa-cp: Select saner profile count to base heuristics on

2021-10-06 Thread Jan Hubicka
> 2021-08-23 Martin Jambor > > * params.opt (param_ipa_cp_profile_count_base): New parameter. > * ipa-cp.c (max_count): Replace with base_count, replace all > occurrences too, unless otherwise stated. > (ipcp_cloning_candidate_p): identify mostly-directly called >

[PATCH 4/4] ipa-cp: Select saner profile count to base heuristics on

2021-08-24 Thread Martin Jambor
When profile feedback is available, IPA-CP takes the count of the hottest node and then evaluates all call contexts relative to it. This means that typically almost no clones for specialized contexts are ever created because the maximum is some special function, called from everywhere (that is like