This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Initialize profile in ipa-split
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Jun 2017 10:12:29 +0200
- Subject: Initialize profile in ipa-split
- Authentication-results: sourceware.org; auth=none
Hi,
this patch makes return block profile to be initialized after splitting.
profiledbootstrapped/regtested x86_64-linux, comitted.
Honza
* ipa-split.c (split_function): Initialize return bb profile.
Index: ipa-split.c
===================================================================
--- ipa-split.c (revision 248909)
+++ ipa-split.c (working copy)
@@ -1278,6 +1278,7 @@ split_function (basic_block return_bb, s
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;