summaryrefslogtreecommitdiff
path: root/gcc/cfgloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r--gcc/cfgloop.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index d985a2caa95..303c2187c50 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. */