aboutsummaryrefslogtreecommitdiff
path: root/gcc/tracer.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2004-11-22 10:14:00 -0700
committerJeff Law <law@gcc.gnu.org>2004-11-22 10:14:00 -0700
commit9ff3d2dea058075c670842e6ae0ac47d4405f829 (patch)
treee3538ca20caef7bf1f7f387c46b84c91cda52be6 /gcc/tracer.c
parent169c5767efa86cacdd6be4ac8cdc21b35f7cab5b (diff)
downloadgcc-9ff3d2dea058075c670842e6ae0ac47d4405f829.zip
gcc-9ff3d2dea058075c670842e6ae0ac47d4405f829.tar.gz
gcc-9ff3d2dea058075c670842e6ae0ac47d4405f829.tar.bz2
cfg.c (cached_make_edge): Use find_edge rather than an inlined variant.
* 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. From-SVN: r91019
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 968d093..9b88766 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);