Hello. Following is a typo fix which nobody has noticed during testing of e.g. gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c.
Patch can bootstrap and survives regression tests. Ready for trunk? Thanks, Martin gcc/ChangeLog: 2017-07-11 Martin Liska <mli...@suse.cz> * auto-profile.c (autofdo_source_profile::update_inlined_ind_target): Fix wrong condition. --- gcc/auto-profile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 334f38be109..d8b0d04bf15 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -777,12 +777,12 @@ autofdo_source_profile::update_inlined_ind_target (gcall *stmt, count of the unpromoted targets (stored in old_info). If it is no less than half of the callsite count (stored in INFO), the original promoted target is considered not hot any more. */ - if (total >= info->count / 2) + if (info->count < total / 2) { if (dump_file) - fprintf (dump_file, " not hot anymore %ld >= %ld", - (long)total, - (long)info->count /2); + fprintf (dump_file, " not hot anymore %ld < %ld", + (long)info->count, + (long)total /2); return false; }