diff options
author | Jeff Law <law@redhat.com> | 2004-11-22 10:14:00 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2004-11-22 10:14:00 -0700 |
commit | 9ff3d2dea058075c670842e6ae0ac47d4405f829 (patch) | |
tree | e3538ca20caef7bf1f7f387c46b84c91cda52be6 /gcc/cfgloop.c | |
parent | 169c5767efa86cacdd6be4ac8cdc21b35f7cab5b (diff) | |
download | gcc-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/cfgloop.c')
-rw-r--r-- | gcc/cfgloop.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index d985a2c..303c218 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -1499,14 +1499,7 @@ verify_loop_structure (struct loops *loops) edge loop_latch_edge (const struct loop *loop) { - edge e; - edge_iterator ei; - - FOR_EACH_EDGE (e, ei, loop->header->preds) - if (e->src == loop->latch) - break; - - return e; + return find_edge (loop->latch, loop->header); } /* Returns preheader edge of LOOP. */ |