[PATCH 2/6] Improve debug output of loop data prefetching.

Maxim Kuvyrkov maxim.kuvyrkov@linaro.org
Mon Jan 30 11:43:00 GMT 2017


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.

--
Maxim Kuvyrkov
www.linaro.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Improve-debug-output-of-loop-data-prefetching.patch
Type: application/octet-stream
Size: 8840 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170130/84bbf14b/attachment.obj>


More information about the Gcc-patches mailing list