[PATCH] Fix setting of hotness in non-LTO mode (PR gcov-profile/77698).
Jeff Law
law@redhat.com
Sun Nov 4 19:19:00 GMT 2018
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
More information about the Gcc-patches
mailing list