-
- Downloads
Come up with SIZE_AMOUNT and use it in memory statistics and sort stats.
2018-11-05 Martin Liska <mliska@suse.cz> * alloc-pool.h (struct pool_usage): Use SIZE_AMOUNT. * bitmap.h (struct bitmap_usage): Likewise. * ggc-common.c (SCALE): Remove. (LABEL): Likewise. (struct ggc_usage): Use SIZE_AMOUNT. And update compare method. * ggc-page.c (SCALE): Remove. (STAT_LABEL): Remove. (ggc_print_statistics): Use SIZE_AMOUNT. * gimple.h (SCALE): Remove. (LABEL): Likewise. * input.c (ONE_K): Remove. (ONE_M): Likewise. (SCALE): Likewise. (STAT_LABEL): Likewise. (FORMAT_AMOUNT): Likewise. (dump_line_table_statistics): Use SIZE_AMOUNT. * mem-stats.h (struct mem_usage): Likewise. * rtl.c (dump_rtx_statistics): Likewise. (rtx_alloc_counts): Change type to size_t. (rtx_alloc_sizes): Likewise. (rtx_count_cmp): New. (dump_rtx_statistics): Sort first based on counts. * tree.c (tree_nodes_cmp): New. (tree_codes_cmp): New. (dump_tree_statistics): Sort first based on counts. * system.h (ONE_K): New. (ONE_M): Likewise. (SIZE_SCALE): Likewise. (SIZE_LABEL): Likewise. (SIZE_AMOUNT): Likewise. * tree-cfg.c (dump_cfg_stats): Use SIZE_AMOUNT. * tree-dfa.c (dump_dfa_stats): Likewise. * tree-phinodes.c (phinodes_print_statistics): Likewise. * tree-ssanames.c (ssanames_print_statistics): Likewise. * tree.c (dump_tree_statistics): Likewise. * vec.c (struct vec_usage): Likewise. * trans-mem.c (tm_mangle): Enlarge buffer in order to not trigger a -Werror=format-overflow with --enable-gather-detailed-stats. From-SVN: r265800
Showing
- gcc/ChangeLog 43 additions, 0 deletionsgcc/ChangeLog
- gcc/alloc-pool.h 11 additions, 7 deletionsgcc/alloc-pool.h
- gcc/bitmap.h 6 additions, 6 deletionsgcc/bitmap.h
- gcc/ggc-common.c 11 additions, 21 deletionsgcc/ggc-common.c
- gcc/ggc-page.c 43 additions, 43 deletionsgcc/ggc-page.c
- gcc/gimple.c 6 additions, 5 deletionsgcc/gimple.c
- gcc/gimple.h 0 additions, 10 deletionsgcc/gimple.h
- gcc/input.c 19 additions, 56 deletionsgcc/input.c
- gcc/mem-stats.h 6 additions, 6 deletionsgcc/mem-stats.h
- gcc/rtl.c 45 additions, 21 deletionsgcc/rtl.c
- gcc/system.h 25 additions, 0 deletionsgcc/system.h
- gcc/trans-mem.c 1 addition, 1 deletiongcc/trans-mem.c
- gcc/tree-cfg.c 4 additions, 4 deletionsgcc/tree-cfg.c
- gcc/tree-dfa.c 8 additions, 8 deletionsgcc/tree-dfa.c
- gcc/tree-phinodes.c 3 additions, 2 deletionsgcc/tree-phinodes.c
- gcc/tree-ssanames.c 4 additions, 2 deletionsgcc/tree-ssanames.c
- gcc/tree.c 67 additions, 24 deletionsgcc/tree.c
- gcc/vec.c 13 additions, 7 deletionsgcc/vec.c
Loading
Please register or sign in to comment