Commit ae5512dd by Jan Hubicka Committed by Jan Hubicka

opts.c (finish_options): x_flag_reorder_blocks_and_partition no longer requires x_flag_profile_use.


	* opts.c (finish_options): x_flag_reorder_blocks_and_partition no
	longer requires x_flag_profile_use.

From-SVN: r249019
parent 853ed6bc
2017-06-08 Jan Hubicka <hubicka@ucw.cz> 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
* opts.c (finish_options): x_flag_reorder_blocks_and_partition no
longer requires x_flag_profile_use.
2017-06-08 Jan Hubicka <hubicka@ucw.cz>
* cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
instead of flag_reorder_blocks_and_partition. instead of flag_reorder_blocks_and_partition.
* dbxout.c (dbxout_function_end): Likewise. * dbxout.c (dbxout_function_end): Likewise.
......
...@@ -863,16 +863,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, ...@@ -863,16 +863,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
opts->x_flag_reorder_blocks = 1; opts->x_flag_reorder_blocks = 1;
} }
/* Disable -freorder-blocks-and-partition when -fprofile-use is not in
effect. Function splitting was not actually being performed in that case,
as probably_never_executed_bb_p does not distinguish any basic blocks as
being cold vs hot when there is no profile data. Leaving it enabled,
however, causes the assembly code generator to create (empty) cold
sections and labels, leading to unnecessary size overhead. */
if (opts->x_flag_reorder_blocks_and_partition
&& !opts_set->x_flag_profile_use)
opts->x_flag_reorder_blocks_and_partition = 0;
if (opts->x_flag_reorder_blocks_and_partition if (opts->x_flag_reorder_blocks_and_partition
&& !opts_set->x_flag_reorder_functions) && !opts_set->x_flag_reorder_functions)
opts->x_flag_reorder_functions = 1; opts->x_flag_reorder_functions = 1;
......
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