mirror of git://gcc.gnu.org/git/gcc.git
* ipa-split.c (split_function): Initialize return bb profile.
From-SVN: r248911
This commit is contained in:
parent
873fa2048c
commit
ce6ec23497
|
|
@ -1,3 +1,7 @@
|
||||||
|
2017-06-06 Jan Hubicka <hubicka@ucw.cz>
|
||||||
|
|
||||||
|
* ipa-split.c (split_function): Initialize return bb profile.
|
||||||
|
|
||||||
2017-06-06 Jan Hubicka <hubicka@ucw.cz>
|
2017-06-06 Jan Hubicka <hubicka@ucw.cz>
|
||||||
|
|
||||||
* profile.c (compute_branch_probabilities): Also initialize
|
* profile.c (compute_branch_probabilities): Also initialize
|
||||||
|
|
|
||||||
|
|
@ -1278,6 +1278,7 @@ split_function (basic_block return_bb, struct split_point *split_point,
|
||||||
basic_block new_return_bb = create_basic_block (NULL, 0, return_bb);
|
basic_block new_return_bb = create_basic_block (NULL, 0, return_bb);
|
||||||
gimple_stmt_iterator gsi = gsi_start_bb (new_return_bb);
|
gimple_stmt_iterator gsi = gsi_start_bb (new_return_bb);
|
||||||
gsi_insert_after (&gsi, gimple_build_return (NULL), GSI_NEW_STMT);
|
gsi_insert_after (&gsi, gimple_build_return (NULL), GSI_NEW_STMT);
|
||||||
|
new_return_bb->count = profile_count::zero ();
|
||||||
while (redirected)
|
while (redirected)
|
||||||
{
|
{
|
||||||
redirected = false;
|
redirected = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue