From: Jeff Law <law@redhat.com>
To: "Martin Liška" <mliska@suse.cz>, gcc-patches@gcc.gnu.org
Cc: Jan Hubicka <hubicka@ucw.cz>
Subject: Re: [PATCH] Fix indirect call optimization done by autoFDO.
Date: Wed, 26 Jul 2017 17:22:00 -0000 [thread overview]
Message-ID: <c3fa3f2e-de0a-e52b-421c-cd5e1fd7692c@redhat.com> (raw)
In-Reply-To: <dc01fe0c-9101-9c57-3401-bbff63d742a3@suse.cz>
On 07/11/2017 04:37 AM, Martin Liška wrote:
> 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 <mliska@suse.cz>
>
> * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
> Fix wrong condition.
The preceeding comment says
"If it is no less than half of the callsite count (stored in INFO), the
original promoted target is considered not hot anymore."
"it" presumably refers to TOTAL and INFO->count holds the callsite count.
A direct translation would result in
! (total < info->count / 2)
Which is equivalent to
(total >= info->count / 2)
Which seems to match the code.
So is the comment wrong? Or is my interpretation wrong?
jeff
next prev parent reply other threads:[~2017-07-26 17:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-11 10:37 Martin Liška
2017-07-26 17:22 ` Jeff Law [this message]
2017-07-27 12:54 ` Martin Liška
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3fa3f2e-de0a-e52b-421c-cd5e1fd7692c@redhat.com \
--to=law@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hubicka@ucw.cz \
--cc=mliska@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).