From ce6ec23497cbe4cbac8165b927deaba220a523d8 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 6 Jun 2017 10:05:29 +0200 Subject: * ipa-split.c (split_function): Initialize return bb profile. From-SVN: r248911 --- gcc/ChangeLog | 4 ++++ gcc/ipa-split.c | 1 + 2 files changed, 5 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ffaa0e..8a5960f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2017-06-06 Jan Hubicka + * ipa-split.c (split_function): Initialize return bb profile. + +2017-06-06 Jan Hubicka + * profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 7778b9c..0af31d6 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -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); gimple_stmt_iterator gsi = gsi_start_bb (new_return_bb); gsi_insert_after (&gsi, gimple_build_return (NULL), GSI_NEW_STMT); + new_return_bb->count = profile_count::zero (); while (redirected) { redirected = false; -- cgit v1.1