summaryrefslogtreecommitdiff
path: root/gcc/tracer.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-22 17:14:00 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-22 17:14:00 +0000
commitc6356c1796657da2e0b31ea892ed768375c96ef1 (patch)
treee3538ca20caef7bf1f7f387c46b84c91cda52be6 /gcc/tracer.c
parent3fc92937aad25385f5ae0e1e8525a8f05c5e0d1f (diff)
downloadgcc-c6356c1796657da2e0b31ea892ed768375c96ef1.tar.gz
* cfg.c (cached_make_edge): Use find_edge rather than an inlined
variant. * cfgbuild.c (make_edges): Likewise. * cfghooks.c (can_duplicate_block_p): Likewise. * cfgloop.c (loop_latch_edge): Likewise. * cfgloopmanip.c (force_single_succ_latches): Likewise. * cfgrtl.c (rtl_flow_call_edges_add): Likewise. * predict.c (predict_loops, propagate_freq): Likewise. * tracer.c (tail_duplicate): Likewise. * tree-cfg.c (disband_implicit_edges): Likewise. (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91019 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tracer.c')
-rw-r--r--gcc/tracer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tracer.c b/gcc/tracer.c
index 968d093b723..9b8876602ca 100644
--- a/gcc/tracer.c
+++ b/gcc/tracer.c
@@ -275,12 +275,9 @@ tail_duplicate (void)
&& can_duplicate_block_p (bb2))
{
edge e;
- edge_iterator ei;
basic_block old = bb2;
- FOR_EACH_EDGE (e, ei, bb2->preds)
- if (e->src == bb)
- break;
+ e = find_edge (bb, bb2);
nduplicated += counts [bb2->index];
bb2 = duplicate_block (bb2, e);