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 part of the call graph. This change > makes it to switch to the PGO mode only if any of the incoming edges > bringing in the constant in question had any ipa-quality counts on > them. Consequently, if a part of the program is built with > -fprofile-use and another part without, IPA-CP will use > estimated-frequency-based heuristics for the latter. > > I still wonder whether this should only happen with > flag_profile_partial_training on. It seems like we're behaving as if > it was always on. >
Honza approved this patch in a private conversation and so I have pushed it to master as commit ab810952eb7c061e37054ddd1dfe0aa033365131. Thanks, Martin