-
- Downloads
expr.c (emit_block_move_via_movmem, [...]): Add variant handling histograms; add wrapper.
* expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add variant handling histograms; add wrapper. (clear_storage_via_libcall): Export. (emit_block_move_hints): Break out from ...; add histograms. (emit_block_move): ... this one. (clear_storage_hints): Break out from ...; add histograms. (clear_storage): ... this one. (set_storage_via_memset): Handle histogram. * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare. (clear_storage_hints, clear_storage_via_libcall): Declare. (set_storage_via_setmem): Update prototype. * doc/md.texi (movmem, setmem): Document new arguments. * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add new histograms. (stringop_block_profile): New global function. (tree_stringops_values_to_profile): Profile block size and alignment. * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and HIST_TYPE_IOR. (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler. (stringop_block_profile): Declare. * builtins.c: Include value-prof.h. (expand_builtin_memcpy, expand_builtin_memset): Pass block profile. * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter. (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants. (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update. * profile.c (instrument_values): Add new counters. * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to calls. * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New. (tree_init_edge_profiler): Build new profilers. (tree_gen_average_profiler, tree_gen_ior_profiler): New. (pass_tree_profile): Add dump. (tree_profile_hooks): Update. * Makefile.in (LIBGCOV): Add new constants. * libgcov.c (__gcov_merge_ior, __gcov_average_profiler, __gcov_ior_profiler): New. * i386.md (movmem/setmem expanders): Add new optional arguments. From-SVN: r121270
Showing
- gcc/ChangeLog 41 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 2 additions, 1 deletiongcc/Makefile.in
- gcc/builtins.c 24 additions, 9 deletionsgcc/builtins.c
- gcc/cfgexpand.c 6 additions, 3 deletionsgcc/cfgexpand.c
- gcc/config/i386/i386.md 13 additions, 7 deletionsgcc/config/i386/i386.md
- gcc/doc/md.texi 10 additions, 0 deletionsgcc/doc/md.texi
- gcc/expr.c 44 additions, 9 deletionsgcc/expr.c
- gcc/expr.h 6 additions, 1 deletiongcc/expr.h
- gcc/gcov-io.h 11 additions, 4 deletionsgcc/gcov-io.h
- gcc/libgcov.c 36 additions, 0 deletionsgcc/libgcov.c
- gcc/profile.c 16 additions, 0 deletionsgcc/profile.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/tree-prof/val-prof-6.c 20 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-prof/val-prof-6.c
- gcc/tree-profile.c 65 additions, 8 deletionsgcc/tree-profile.c
- gcc/value-prof.c 82 additions, 2 deletionsgcc/value-prof.c
- gcc/value-prof.h 10 additions, 1 deletiongcc/value-prof.h
Loading
Please register or sign in to comment