diff options
author | Bin Cheng <bin.cheng@arm.com> | 2016-07-22 13:25:59 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2016-07-22 13:25:59 +0000 |
commit | 78f63b79d9edb87545c40c116dd7859b74e67263 (patch) | |
tree | 230f49f6c784e50a292c04e6f34f69faef898e31 /gcc/loop-iv.c | |
parent | faa1612aa309b073803613c82712bc940393ad74 (diff) |
common.opt (funsafe-loop-optimizations): Mark ignore.
* common.opt (funsafe-loop-optimizations): Mark ignore.
* doc/invoke.texi (funsafe-loop-optimizations): Remove.
* loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
related code.
* tree-ssa-loop-niter.c (finite_loop_p): Ditto.
* config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
From-SVN: r238642
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r-- | gcc/loop-iv.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 68cfd0ef9c8..78bec9e8521 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -3027,42 +3027,6 @@ get_simple_loop_desc (struct loop *loop) iv_analysis_loop_init (loop); find_simple_exit (loop, desc); loop->simple_loop_desc = desc; - - if (desc->simple_p && (desc->assumptions || desc->infinite)) - { - const char *wording; - - /* Assume that no overflow happens and that the loop is finite. - We already warned at the tree level if we ran optimizations there. */ - if (!flag_tree_loop_optimize && warn_unsafe_loop_optimizations) - { - if (desc->infinite) - { - wording = - flag_unsafe_loop_optimizations - ? N_("assuming that the loop is not infinite") - : N_("cannot optimize possibly infinite loops"); - warning (OPT_Wunsafe_loop_optimizations, "%s", - gettext (wording)); - } - if (desc->assumptions) - { - wording = - flag_unsafe_loop_optimizations - ? N_("assuming that the loop counter does not overflow") - : N_("cannot optimize loop, the loop counter may overflow"); - warning (OPT_Wunsafe_loop_optimizations, "%s", - gettext (wording)); - } - } - - if (flag_unsafe_loop_optimizations && single_exit (loop)) - { - desc->assumptions = NULL_RTX; - desc->infinite = NULL_RTX; - } - } - return desc; } |