summaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-24 12:46:53 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-24 12:46:53 +0000
commit141de90eb66692b4e3567b45ab73d756b6538b29 (patch)
tree5ab5386d77aaf4e87b18f66605bbb346bbdd3d92 /gcc/tree-profile.c
parentb864218f30c080234847a3c56e741c20f4ca0326 (diff)
downloadgcc-141de90eb66692b4e3567b45ab73d756b6538b29.tar.gz
2012-05-24 Richard Guenther <rguenther@suse.de>
PR middle-end/53460 * tree-profile.c (tree_profiling): Cleanup the CFG if execute_fixup_cfg requests it. * g++.dg/tree-prof/pr53460.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r--gcc/tree-profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index 94616262bab..4136821bca6 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -491,7 +491,8 @@ tree_profiling (void)
gcov_type_tmp_var = NULL_TREE;
/* Local pure-const may imply need to fixup the cfg. */
- execute_fixup_cfg ();
+ if (execute_fixup_cfg () & TODO_cleanup_cfg)
+ cleanup_tree_cfg ();
branch_prob ();
if (! flag_branch_probabilities