summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
-rw-r--r--gcc/tree-ssa-loop-unswitch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index d406fb5905a..8030bc38bdb 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -169,10 +169,10 @@ simplify_using_entry_checks (struct loop *loop, tree cond)
? boolean_true_node
: boolean_false_node);
- if (EDGE_COUNT (e->src->preds) > 1)
+ if (!single_pred_p (e->src))
return cond;
- e = EDGE_PRED (e->src, 0);
+ e = single_pred_edge (e->src);
if (e->src == ENTRY_BLOCK_PTR)
return cond;
}