Commit b8f4e58f by Richard Guenther Committed by Richard Biener

gimple.h (gimple_register_type): Remove.

2012-09-11  Richard Guenther  <rguenther@suse.de>

	* gimple.h (gimple_register_type): Remove.
	(print_gimple_types_stats): Adjust prototype.
	* lto-streamer.h (print_lto_report): Likewise.
	* lto-streamer.c (print_lto_report): Adjust.
	* gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
	struct type_pair_d, lookup_type_pair, struct sccs,
	next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
	gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
	gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
	visit, iterative_hash_name, struct type_hash_pair,
	type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
	gimple_type_eq, gimple_register_type_1, gimple_register_type):
	Move to lto/lto.c.
	(print_gimple_types_stats): Adjust.
	(free_gimple_type_tables): Likewise.

	lto/
	* lto.c (gimple_types, type_hash_cache, enum gtc_mode,
	struct type_pair_d, lookup_type_pair, struct sccs,
	next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
	gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
	gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
	visit, iterative_hash_name, struct type_hash_pair,
	type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
	gimple_type_eq, gimple_register_type_1, gimple_register_type):
	Move here from gimple.c
	(read_cgraph_and_symbols): Free hash tables here.
	(print_lto_report_1): New function wrapping print_lto_report.
	(do_whole_program_analysis): Call it.
	(lto_main): Likewise.

From-SVN: r191177
parent 2cbd94af
2012-09-11 Richard Guenther <rguenther@suse.de> 2012-09-11 Richard Guenther <rguenther@suse.de>
* gimple.h (gimple_register_type): Remove.
(print_gimple_types_stats): Adjust prototype.
* lto-streamer.h (print_lto_report): Likewise.
* lto-streamer.c (print_lto_report): Adjust.
* gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
struct type_pair_d, lookup_type_pair, struct sccs,
next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
visit, iterative_hash_name, struct type_hash_pair,
type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
gimple_type_eq, gimple_register_type_1, gimple_register_type):
Move to lto/lto.c.
(print_gimple_types_stats): Adjust.
(free_gimple_type_tables): Likewise.
2012-09-11 Richard Guenther <rguenther@suse.de>
* graphite-scop-detection.c (move_sd_regions): Adjust for VEC * graphite-scop-detection.c (move_sd_regions): Adjust for VEC
changes. changes.
(scopdet_basic_block_info): Likewise. (scopdet_basic_block_info): Likewise.
......
...@@ -882,9 +882,8 @@ extern bool is_gimple_call_addr (tree); ...@@ -882,9 +882,8 @@ extern bool is_gimple_call_addr (tree);
extern void recalculate_side_effects (tree); extern void recalculate_side_effects (tree);
extern bool gimple_compare_field_offset (tree, tree); extern bool gimple_compare_field_offset (tree, tree);
extern tree gimple_register_type (tree);
extern tree gimple_register_canonical_type (tree); extern tree gimple_register_canonical_type (tree);
extern void print_gimple_types_stats (void); extern void print_gimple_types_stats (const char *);
extern void free_gimple_type_tables (void); extern void free_gimple_type_tables (void);
extern tree gimple_unsigned_type (tree); extern tree gimple_unsigned_type (tree);
extern tree gimple_signed_type (tree); extern tree gimple_signed_type (tree);
......
...@@ -180,12 +180,10 @@ lto_get_section_name (int section_type, const char *name, struct lto_file_decl_d ...@@ -180,12 +180,10 @@ lto_get_section_name (int section_type, const char *name, struct lto_file_decl_d
/* Show various memory usage statistics related to LTO. */ /* Show various memory usage statistics related to LTO. */
void void
print_lto_report (void) print_lto_report (const char *s)
{ {
const char *s = (flag_lto) ? "LTO" : (flag_wpa) ? "WPA" : "LTRANS";
unsigned i; unsigned i;
fprintf (stderr, "%s statistics\n", s);
fprintf (stderr, "[%s] # of input files: " fprintf (stderr, "[%s] # of input files: "
HOST_WIDE_INT_PRINT_UNSIGNED "\n", s, lto_stats.num_input_files); HOST_WIDE_INT_PRINT_UNSIGNED "\n", s, lto_stats.num_input_files);
...@@ -197,9 +195,6 @@ print_lto_report (void) ...@@ -197,9 +195,6 @@ print_lto_report (void)
HOST_WIDE_INT_PRINT_UNSIGNED "\n", s, HOST_WIDE_INT_PRINT_UNSIGNED "\n", s,
lto_stats.num_function_bodies); lto_stats.num_function_bodies);
fprintf (stderr, "[%s] ", s);
print_gimple_types_stats ();
for (i = 0; i < NUM_TREE_CODES; i++) for (i = 0; i < NUM_TREE_CODES; i++)
if (lto_stats.num_trees[i]) if (lto_stats.num_trees[i])
fprintf (stderr, "[%s] # of '%s' objects read: " fprintf (stderr, "[%s] # of '%s' objects read: "
......
...@@ -785,7 +785,7 @@ extern const char *lto_tag_name (enum LTO_tags); ...@@ -785,7 +785,7 @@ extern const char *lto_tag_name (enum LTO_tags);
extern bitmap lto_bitmap_alloc (void); extern bitmap lto_bitmap_alloc (void);
extern void lto_bitmap_free (bitmap); extern void lto_bitmap_free (bitmap);
extern char *lto_get_section_name (int, const char *, struct lto_file_decl_data *); extern char *lto_get_section_name (int, const char *, struct lto_file_decl_data *);
extern void print_lto_report (void); extern void print_lto_report (const char *);
extern void lto_streamer_init (void); extern void lto_streamer_init (void);
extern bool gate_lto_out (void); extern bool gate_lto_out (void);
#ifdef LTO_STREAMER_DEBUG #ifdef LTO_STREAMER_DEBUG
......
2012-09-11 Richard Guenther <rguenther@suse.de>
* lto.c (gimple_types, type_hash_cache, enum gtc_mode,
struct type_pair_d, lookup_type_pair, struct sccs,
next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
visit, iterative_hash_name, struct type_hash_pair,
type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
gimple_type_eq, gimple_register_type_1, gimple_register_type):
Move here from gimple.c
(read_cgraph_and_symbols): Free hash tables here.
(print_lto_report_1): New function wrapping print_lto_report.
(do_whole_program_analysis): Call it.
(lto_main): Likewise.
2012-09-10 Jan Hubicka <jh@suse.cz> 2012-09-10 Jan Hubicka <jh@suse.cz>
* lto-partition.c (partition_symbol_p): Forward declare. * lto-partition.c (partition_symbol_p): Forward declare.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment