This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Initialize profile in ipa-split


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]