This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/6] Improve debug output of loop data prefetching.
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Kyrylo Tkachov <kyrylo dot tkachov at arm dot com>, Andrew Pinski <apinski at cavium dot com>
- Date: Mon, 30 Jan 2017 13:33:31 +0100
- Subject: Re: [PATCH 2/6] Improve debug output of loop data prefetching.
- Authentication-results: sourceware.org; auth=none
- References: <F7C2520D-866C-4293-831D-815BF466DFA2@linaro.org> <14A3A775-932A-4083-B739-DB2091ED8F32@linaro.org>
On Mon, Jan 30, 2017 at 12:36 PM, Maxim Kuvyrkov
<maxim.kuvyrkov@linaro.org> wrote:
> Current debug output from -fprefetch-loop-arrays refers to prefetching instances by their (void *) address, which makes it painful to compare dumps, e.g., when investigating how different parameter values affect prefetching decisions.
>
> This patch adds UIDs to two main prefetching concepts: mem_ref_group and mem_ref. [Mem_refs are combined into mem_ref_groups so that they can re-use prefetches.] Debug output is then changed to identify prefetch opportunities as <group>:<ref> instead of 0xNNNNNNNN. Believe me, it makes a world of difference for debugging tree-ssa-loop-prefetch.c.
>
> There is no change in code-generation from this patch.
>
> Bootstrapped and regtested on x86_64-linux-gnu and aarch64-linux-gnu.
Ok.
Richard.
> --
> Maxim Kuvyrkov
> www.linaro.org
>