This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix setting of hotness in non-LTO mode (PR gcov-profile/77698).
- From: Jeff Law <law at redhat dot com>
- To: Martin Liška <mliska at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Cc: Jan Hubicka <hubicka at ucw dot cz>
- Date: Sun, 4 Nov 2018 12:19:17 -0700
- Subject: Re: [PATCH] Fix setting of hotness in non-LTO mode (PR gcov-profile/77698).
- References: <6afadfdf-2c42-5070-483a-579538f66468@suse.cz>
On 10/9/18 6:37 AM, Martin Liška wrote:
> Hi.
>
> In non-LTO mode, we should not set hotness according to computed histogram
> in ipa-profile. Following patch does that and fixes the test-case isolated
> from PR.
>
> Patch survives regression tests on x86_64-linux-gnu.
> Ready for trunk?
> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 2018-10-09 Martin Liska <mliska@suse.cz>
>
> PR gcov-profile/77698
> * ipa-profile.c (ipa_profile): Adjust hotness threshold
> only in LTO mode.
>
> gcc/testsuite/ChangeLog:
>
> 2018-10-09 Martin Liska <mliska@suse.cz>
>
> PR gcov-profile/77698
> * gcc.dg/tree-prof/pr77698.c: New test.
OK
jeff