[PATCH] Improve dumping of value profiling transformations.
Martin Liška
mliska@suse.cz
Wed Aug 1 10:16:00 GMT 2018
Hi.
This is format clean-up of value transformations that can happen.
It makes it easier to grep them and find how many were actually
applied.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Martin
gcc/ChangeLog:
2018-07-31 Martin Liska <mliska@suse.cz>
* value-prof.c (gimple_divmod_fixed_value_transform): Unify
format how successful transformation is dumped.
(gimple_mod_pow2_value_transform): Likewise.
(gimple_mod_subtract_transform): Likewise.
(gimple_stringops_transform): Likewise.
gcc/testsuite/ChangeLog:
2018-07-31 Martin Liska <mliska@suse.cz>
* gcc.dg/tree-prof/stringop-1.c: Adjust scanned pattern.
* gcc.dg/tree-prof/stringop-2.c: Likewise.
* gcc.dg/tree-prof/val-prof-1.c: Likewise.
* gcc.dg/tree-prof/val-prof-2.c: Likewise.
* gcc.dg/tree-prof/val-prof-3.c: Likewise.
* gcc.dg/tree-prof/val-prof-4.c: Likewise.
* gcc.dg/tree-prof/val-prof-5.c: Likewise.
* gcc.dg/tree-prof/val-prof-7.c: Likewise.
---
gcc/testsuite/gcc.dg/tree-prof/stringop-1.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/stringop-2.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/val-prof-1.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/val-prof-3.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/val-prof-4.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/val-prof-7.c | 24 ++++++++---------
gcc/value-prof.c | 29 +++++++--------------
9 files changed, 28 insertions(+), 39 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Improve-dumping-of-value-profiling-transformations.patch
Type: text/x-patch
Size: 10884 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180801/f0333b92/attachment.bin>
More information about the Gcc-patches
mailing list