summaryrefslogtreecommitdiff
path: root/gcc/cfg.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/cfg.c
parent169c5767efa86cacdd6be4ac8cdc21b35f7cab5b (diff)
downloadgcc-9ff3d2dea058075c670842e6ae0ac47d4405f829.tar.gz
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/cfg.c')
-rw-r--r--gcc/cfg.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index 85f6fac4125..f7e5a79e0ae 100644
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -288,7 +288,6 @@ cached_make_edge (sbitmap *edge_cache, basic_block src, basic_block dst, int fla
{
int use_edge_cache;
edge e;
- edge_iterator ei;
/* Don't bother with edge cache for ENTRY or EXIT, if there aren't that
many edges to them, or we didn't allocate memory for it. */
@@ -309,12 +308,12 @@ cached_make_edge (sbitmap *edge_cache, basic_block src, basic_block dst, int fla
/* Fall through. */
case 0:
- FOR_EACH_EDGE (e, ei, src->succs)
- if (e->dest == dst)
- {
- e->flags |= flags;
- return NULL;
- }
+ e = find_edge (src, dst);
+ if (e)
+ {
+ e->flags |= flags;
+ return NULL;
+ }
break;
}