summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-16 22:28:29 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-16 22:28:29 +0000
commit41d24834b5784dbbb08553f36eaa80386fc75d0a (patch)
tree6ad911f298df01a4dbc580f0c53b37b1d2a4a63f /gcc/predict.c
parentf9c6943bb1d4e5d0333f2d519ecf678898502570 (diff)
downloadgcc-41d24834b5784dbbb08553f36eaa80386fc75d0a.tar.gz
* basic-block.h (remove_fake_exit_edges): Declare.
* cfganal.c (remove_fake_predecessors): Rename from remove_fake_successors; iterate over predecessors. (remove_fake_exit_edges): New. * cfgcleanup.c (try_optimize_cfg): Use it. * gcse.c (one_pre_gcse_pass, store_motion): Likewise. * predict.c (estimate_probability): Likewise. (tree_estimate_probability, note_prediction_to_br_prob): Likewise. * tree-cfg.c (make_edges): Likewise. * tree-ssa-pre.c (fini_pre): Likewise. * profile.c (instrument_edges): Don't remove_fake_edges. (branch_prob): Do it earlier here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84840 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 08834f89cd9..49d2c612063 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -779,7 +779,7 @@ estimate_probability (struct loops *loops_info)
&& bb->succ->succ_next != NULL)
combine_predictions_for_insn (BB_END (bb), bb);
- remove_fake_edges ();
+ remove_fake_exit_edges ();
/* Fill in the probability values in flowgraph based on the REG_BR_PROB
notes. */
FOR_EACH_BB (bb)
@@ -986,7 +986,7 @@ tree_estimate_probability (void)
estimate_bb_frequencies (&loops_info);
free_dominance_info (CDI_POST_DOMINATORS);
- remove_fake_edges ();
+ remove_fake_exit_edges ();
flow_loops_free (&loops_info);
if (dump_file && (dump_flags & TDF_DETAILS))
dump_tree_cfg (dump_file, dump_flags);
@@ -1220,7 +1220,7 @@ note_prediction_to_br_prob (void)
free_dominance_info (CDI_DOMINATORS);
free (heads);
- remove_fake_edges ();
+ remove_fake_exit_edges ();
}
/* This is used to carry information about basic blocks. It is