aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@arm.com>2017-07-18 11:40:38 +0000
committerBin Cheng <amker@gcc.gnu.org>2017-07-18 11:40:38 +0000
commit694dd0e408581c9e3fc0fab4864d9de054c7cc0c (patch)
tree03d6bae865524150f12b20bb8f91b52fd55c7ca2 /gcc/tree-ssa-loop-niter.c
parentf94f48ffacd568e76d526f2cb8f7347c599affda (diff)
downloadgcc-694dd0e408581c9e3fc0fab4864d9de054c7cc0c.zip
gcc-694dd0e408581c9e3fc0fab4864d9de054c7cc0c.tar.gz
gcc-694dd0e408581c9e3fc0fab4864d9de054c7cc0c.tar.bz2
re PR middle-end/81408 (Lots of new -Wunsafe-loop-optimizations warnings with 7 compared to 6)
PR target/81408 * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed optimization for loop niter analysis. gcc/testsuite * g++.dg/tree-ssa/pr81408.C: New. * gcc.dg/tree-ssa/pr19210-1.c: Check dump message rather than warning. From-SVN: r250304
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index 5a7cab5..1421002 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -2378,9 +2378,9 @@ number_of_iterations_exit (struct loop *loop, edge exit,
return true;
if (warn)
- warning_at (gimple_location_safe (stmt),
- OPT_Wunsafe_loop_optimizations,
- "missed loop optimization, the loop counter may overflow");
+ dump_printf_loc (MSG_MISSED_OPTIMIZATION, gimple_location_safe (stmt),
+ "missed loop optimization: niters analysis ends up "
+ "with assumptions.\n");
return false;
}