Port value profiling to -fopt-info infrastructure

Programming / Compilers / GCC - marxin [138bc75d-0d04-0410-961f-82ee72b054a4] - 9 August 2019 07:47 EDT

2019-08-09 Martin Liska

- value-prof.c (gimple_divmod_fixed_value_transform): Use dump_printf_loc. (gimple_mod_pow2_value_transform): Likewise. (gimple_mod_subtract_transform): Likewise. (init_node_map): Likewise. (gimple_ic_transform): Likewise. (gimple_stringops_transform): Likewise. 2019-08-09 Martin Liska

- g++.dg/tree-prof/indir-call-prof.C: Add -optimize to -fdump-ipa-profile.
- g++.dg/tree-prof/morefunc.C: Likewise.
- g++.dg/tree-prof/reorder.C: Likewise.
- gcc.dg/tree-prof/ic-misattribution-1.c: Likewise.
- gcc.dg/tree-prof/indir-call-prof.c: Likewise.
- gcc.dg/tree-prof/stringop-1.c: Likewise.
- 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.

c5f5b6bcb87 Port value profiling to -fopt-info infrastructure.
gcc/ChangeLog | 10 ++
gcc/testsuite/ChangeLog | 17 ++++
gcc/testsuite/g++.dg/tree-prof/indir-call-prof.C | 2 +-
gcc/testsuite/g++.dg/tree-prof/morefunc.C | 2 +-
gcc/testsuite/g++.dg/tree-prof/reorder.C | 2 +-
.../gcc.dg/tree-prof/ic-misattribution-1.c | 2 +-
gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c | 2 +-
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 | 2 +-
gcc/value-prof.c | 105 ++++++++++-----------
16 files changed, 91 insertions(+), 67 deletions(-)

Upstream: gcc.gnu.org


  • Share