This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GOOGLE] Report the difference between profiled and guessed or annotated branch probabilities.
- From: Yi Yang <ahyangyi at google dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: gcc-patches at gcc dot gnu dot org, Dehao Chen <dehao at google dot com>
- Date: Fri, 27 Jun 2014 15:06:57 -0700
- Subject: Re: [GOOGLE] Report the difference between profiled and guessed or annotated branch probabilities.
- Authentication-results: sourceware.org; auth=none
- References: <CADvRsebhLsjHkfWN58tdDU7CmgjDJZ9SDNXFwpq5JWEQLKpECA at mail dot gmail dot com> <8738eqxisf dot fsf at tassilo dot jf dot intel dot com>
I'm glad this feature is useful to people.
I haven't looked at the normal profiling process though. If anybody
would like to port this code to normal profiling, I'm more than
pleased to see that happen. Maybe I'll do that myself when I have
time, but do not count on that :)
On Fri, Jun 27, 2014 at 12:18 PM, Andi Kleen <andi@firstfloor.org> wrote:
> Yi Yang <ahyangyi@google.com> writes:
>
>> Hi,
>>
>> This patch adds an option. When the option is enabled, GCC will add a
>> record about it in an elf section called
>> ".gnu.switches.text.branch.annotation" for every branch.
>
> This would be nice to have even in mainline for the normal profiling.
>
> -Andi
>
> --
> ak@linux.intel.com -- Speaking for myself only