common.opt (flto-partition): Add "max".
authorJan Hubicka <jh@suse.cz>
Wed, 12 Sep 2012 17:55:13 +0000 (19:55 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 12 Sep 2012 17:55:13 +0000 (17:55 +0000)
commitc3c445e1cfe4184c0d3537f87e8e5bd3f9974646
tree4b0831fe3e4311ccc76b7a244999bd8e3c36b484
parentb5c7cdfb0a1331bbed96c6e1c4f7e832fe070100
common.opt (flto-partition): Add "max".

* common.opt (flto-partition): Add "max".
* invoke.texi (flto-partition): Document "max"

* lto.c (do_whole_program_analysis): Care timevars, statistics and
AUX pointer cleaning. Add max partitioning.
* lto-partition.c (enum symbol_class): New.
(get_symbol_class): New function.
(symbol_partitioned_p): New function.
(add_references_to_partition): Remove.
(add_aliases_to_partition): Remove.
(add_cgraph_node_to_partition_1): Remove.
(add_cgraph_node_to_partition): Remove.
(add_symbol_to_partition): New function.
(add_symbol_to_partition_1): New function.
(contained_in_symbol): New function.
(partition_cgraph_node_p): Remove.
(partition_varpool_node_p): Remove.
(partition_symbol_p): Remove.
(lto_1_to_1_map): Cleanup.
(lto_max_map): New.
(lto_balanced_map): Update.
(lto_promote_cross_file_statics): Update.
* lto-partition.h (lto_max_map): Declare.
* timevar.def (TV_WHOPR_PARTITIONING): New timevar.

From-SVN: r191229
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/lto/ChangeLog
gcc/lto/lto-partition.c
gcc/lto/lto-partition.h
gcc/lto/lto.c
gcc/timevar.def