Hi,
since Martin in meantime backported the fix for thunk profiling which
trigers the merging bug, I also bacported the patch into GCC 8
as follows.
Bootstrapped/regtested x86_64-linux and tested on Firefox build.
2019-01-03 Jan Hubicka
* ipa-utils.c (scale_ipa_profile_for_fn): Break
Hi,
testing of Firefox has uncovered an ICE which I introduced by the patch
to fix profile of thunks. The problem is that ipa_merge_profile may try
to merge profile of thunks and end up with attempting to touch their
gimple body.
This patch implements merging of profile of thunks and I also added