[PATCH] Dump profile-based number of iterations

Martin Liška mliska@suse.cz
Fri Jun 24 16:34:00 GMT 2016


Following patch dumps # of iterations for loops that iterates with unknown number
of iterations and profile is available. The same support is added to contrib/analyze_brprob.py

Sample output of the script:

Loop count: 918
  avg. # of iter: 6.29
  median # of iter: 8.00
  avg. (1% cutoff) # of iter: 6.30
  avg. (5% cutoff) # of iter: 6.35
  avg. (10% cutoff) # of iter: 6.39
  avg. (20% cutoff) # of iter: 6.51
  avg. (30% cutoff) # of iter: 6.60

Patch can bootstrap and there's no regression spotted on x86_64-linux-gnu.
It's pre-approved by Honza.

Installed as r237762.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Dump-profile-based-number-of-iterations.patch
Type: text/x-patch
Size: 7307 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160624/5c367bd1/attachment.bin>

More information about the Gcc-patches mailing list