aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-05-30 10:19:24 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-05-30 08:19:24 +0000
commit6f2c0820aed6a0684be07101861c07f4bd43fd84 (patch)
tree33496fd7f99d2824fca1d11fb7c5a6d41ecb611c
parent7e01285587c4d53677dc97effe2d8070fc919fc9 (diff)
downloadgcc-6f2c0820aed6a0684be07101861c07f4bd43fd84.zip
gcc-6f2c0820aed6a0684be07101861c07f4bd43fd84.tar.gz
gcc-6f2c0820aed6a0684be07101861c07f4bd43fd84.tar.bz2
tree-vect-loop.c (vect_analyze_loop_2): Use likely_max_stmt_executions_int.
* tree-vect-loop.c (vect_analyze_loop_2): Use likely_max_stmt_executions_int. From-SVN: r236870
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-vect-loop.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3aa51c9..4617eb6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-30 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree-vect-loop.c (vect_analyze_loop_2): Use
+ likely_max_stmt_executions_int.
+
2016-05-30 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/69067
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 1471658..cada096 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -1945,7 +1945,7 @@ start_over:
LOOP_VINFO_INT_NITERS (loop_vinfo));
HOST_WIDE_INT max_niter
- = max_stmt_executions_int (LOOP_VINFO_LOOP (loop_vinfo));
+ = likely_max_stmt_executions_int (LOOP_VINFO_LOOP (loop_vinfo));
if ((LOOP_VINFO_NITERS_KNOWN_P (loop_vinfo)
&& (LOOP_VINFO_INT_NITERS (loop_vinfo) < vectorization_factor))
|| (max_niter != -1