diff options
author | Jeff Law <law@redhat.com> | 2004-11-08 21:21:49 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2004-11-08 21:21:49 -0700 |
commit | df95526be1b070f6dab3167f362056f4c2c43cfd (patch) | |
tree | 06652f7acaf9367a0888955e343219ae2cf9e5d9 /gcc/cfg.c | |
parent | 68e4debe62c4404b0b5fdebf592c2b36bf52949d (diff) | |
download | gcc-df95526be1b070f6dab3167f362056f4c2c43cfd.zip gcc-df95526be1b070f6dab3167f362056f4c2c43cfd.tar.gz gcc-df95526be1b070f6dab3167f362056f4c2c43cfd.tar.bz2 |
cfg.c (redirect_edge_succ_nodup): Use find_edge rather than implementing it inline.
* cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
implementing it inline.
* cfganal.c (find_edge): Search pred->succs or succ->preds,
whichever is shorter.
From-SVN: r90333
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -428,14 +428,9 @@ edge redirect_edge_succ_nodup (edge e, basic_block new_succ) { edge s; - edge_iterator ei; - - /* Check whether the edge is already present. */ - FOR_EACH_EDGE (s, ei, e->src->succs) - if (s->dest == new_succ && s != e) - break; - if (s) + s = find_edge (e->src, new_succ); + if (s && s != e) { s->flags |= e->flags; s->probability += e->probability; |