* gcc.dg/tree-ssa/prefetch-5.c: Remove xfail.
* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
likely_max_stmt_executions_int.
From-SVN: r236851
+2016-05-27 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
+ likely_max_stmt_executions_int.
+
2016-05-27 Jan Hubicka <hubicka@ucw.cz>
* profile.c (compute_branch_probabilities): Do not report hitrates
+2016-05-27 Jan Hubicka <hubicka@ucw.cz>
+
+ * gcc.dg/tree-ssa/prefetch-5.c: Remove xfail.
+
2016-05-28 Ville Voutilainen <ville.voutilainen@gmail.com>
Revert:
/* Until we are able to track likely upper bounds, we can't really work out that
small trailing arrays should not be prefetched. */
-/* { dg-final { scan-tree-dump-times "Issued prefetch" 2 "aprefetch" { xfail *-*-* } } } */
-/* { dg-final { scan-tree-dump-times "Not prefetching" 1 "aprefetch" { xfail *-*-* } } } */
+/* { dg-final { scan-tree-dump-times "Issued prefetch" 2 "aprefetch" } } */
+/* { dg-final { scan-tree-dump-times "Not prefetching" 1 "aprefetch" } } */
ahead = (PREFETCH_LATENCY + time - 1) / time;
est_niter = estimated_stmt_executions_int (loop);
if (est_niter == -1)
- est_niter = max_stmt_executions_int (loop);
+ est_niter = likely_max_stmt_executions_int (loop);
/* Prefetching is not likely to be profitable if the trip count to ahead
ratio is too small. */