Patchwork Cleanup CFG after profile read/instrumentation

login
register
mail settings
Submitter Jan Hubicka
Date Sept. 2, 2013, 10:53 p.m.
Message ID <20130902225357.GA10117@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/272090/
State New
Headers show

Comments

Jan Hubicka - Sept. 2, 2013, 10:53 p.m.
Hi,
reading profile/instrumenting breaks basic blocks and introduces fake edges.
The broken basic blocks are not re-merged until after LTO streaming that is
wasteful.  Fixed thus.

Profiledbotostrapped/regtsted ppc64-linux, comitted.

Patch

Index: tree-profile.c
===================================================================
--- tree-profile.c	(revision 202185)
+++ tree-profile.c	(working copy)
@@ -598,6 +598,8 @@  tree_profiling (void)
 	    }
 	}
 
+      /* re-merge split blocks.  */
+      cleanup_tree_cfg ();
       update_ssa (TODO_update_ssa);
 
       rebuild_cgraph_edges ();