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/cfghooks.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/cfghooks.c')
-rw-r--r-- | gcc/cfghooks.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index 42d1183..841e468 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -675,7 +675,6 @@ bool can_duplicate_block_p (basic_block bb) { edge e; - edge_iterator ei; if (!cfg_hooks->can_duplicate_block_p) internal_error ("%s does not support can_duplicate_block_p.", @@ -686,9 +685,9 @@ can_duplicate_block_p (basic_block bb) /* Duplicating fallthru block to exit would require adding a jump and splitting the real last BB. */ - FOR_EACH_EDGE (e, ei, bb->succs) - if (e->dest == EXIT_BLOCK_PTR && e->flags & EDGE_FALLTHRU) - return false; + e = find_edge (bb, EXIT_BLOCK_PTR); + if (e && (e->flags & EDGE_FALLTHRU)) + return false; return cfg_hooks->can_duplicate_block_p (bb); } |