summaryrefslogtreecommitdiff
path: root/gcc/loop-iv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r--gcc/loop-iv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c
index c7d51643e92..dfa3ca38204 100644
--- a/gcc/loop-iv.c
+++ b/gcc/loop-iv.c
@@ -3054,7 +3054,7 @@ get_simple_loop_desc (struct loop *loop)
}
}
- if (flag_unsafe_loop_optimizations)
+ if (flag_unsafe_loop_optimizations && single_exit (loop))
{
desc->assumptions = NULL_RTX;
desc->infinite = NULL_RTX;