summaryrefslogtreecommitdiff
path: root/gcc/cfg.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/cfg.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/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;
}