[PATCH] [RFC, PGO+LTO] Missed function specialization + partial devirtualization

Martin Liška mliska@suse.cz
Wed Jun 19 12:18:00 GMT 2019

On 6/19/19 10:56 AM, Martin Liška wrote:
> Thank you very much for the numbers. Today, I'm going to prepare the generalization of single-value counter to track N values.

Ok, here's a patch candidate that does tracking of most common N values. For your test-case I can see:

pr69678.gcda:    01a90000:  18:COUNTERS indirect_call 9 counts
pr69678.gcda:                   0: 350000000 1868707024 175000000 969338501 175000000 0 0 0 
pr69678.gcda:                   8: 0 

So for now, you'll need to generalize get_most_common_single_value to return
N most common values.

Eventually we'll need to renamed the counter as it won't be tracking just a single value
any longer. I can take care of it.

Can you please verify that the patch candidate works for you?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-N-values-in-libgcov-for-single-value-counter.patch
Type: text/x-patch
Size: 3852 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190619/37e76635/attachment.bin>

More information about the Gcc-patches mailing list