diff options
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 686545bf26f..381456cc8d8 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -566,8 +566,8 @@ simplify_using_initial_conditions (struct loop *loop, tree expr, bb != ENTRY_BLOCK_PTR; bb = get_immediate_dominator (CDI_DOMINATORS, bb)) { - e = bb->pred; - if (e->pred_next) + e = EDGE_PRED (bb, 0); + if (EDGE_COUNT (bb->preds) > 1) continue; if (!(e->flags & (EDGE_TRUE_VALUE | EDGE_FALSE_VALUE))) |