bb-reorder.c (insert_section_boundary_note): Only do it if we reordered the blocks; i.e.

* bb-reorder.c (insert_section_boundary_note): Only do it if
	we reordered the blocks; i.e. not if !optimize_function_for_speed_p.

From-SVN: r178298
This commit is contained in:
Bernd Schmidt 2011-08-30 13:17:40 +00:00 committed by Bernd Schmidt
parent 070f36cf07
commit 9645d43461
2 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,9 @@
* config/i386/i386.c (get_pc_thunk_name): Change prefix to
"__x86.get_pc_thunk".
* bb-reorder.c (insert_section_boundary_note): Only do it if
we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2011-08-30 Christian Bruel <christian.bruel@st.com>
* coverage.c (coverage_init): Check flag_branch_probabilities instead of

View File

@ -1965,8 +1965,11 @@ insert_section_boundary_note (void)
rtx new_note;
int first_partition = 0;
if (flag_reorder_blocks_and_partition)
FOR_EACH_BB (bb)
if (!flag_reorder_blocks_and_partition
|| !optimize_function_for_speed_p (cfun))
return;
FOR_EACH_BB (bb)
{
if (!first_partition)
first_partition = BB_PARTITION (bb);