diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-09 04:21:49 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-09 04:21:49 +0000 |
commit | bd98a41841b4c2f94efb5ba21092c33939611646 (patch) | |
tree | 06652f7acaf9367a0888955e343219ae2cf9e5d9 /gcc/cfg.c | |
parent | 817ab1a3675b97e7084be72cfbf7d7f65f1ddaf8 (diff) | |
download | linaro-gcc-bd98a41841b4c2f94efb5ba21092c33939611646.tar.gz linaro-gcc-bd98a41841b4c2f94efb5ba21092c33939611646.tar.bz2 linaro-gcc-bd98a41841b4c2f94efb5ba21092c33939611646.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90333 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c index 1901a59051c..b3da1429b1d 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -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; |