Commit 00022058 by Jan Hubicka Committed by Jan Hubicka

prefetch-5.c: Remove xfail.

	* 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
parent c8419aca
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
here.
(branch_prob): Report hitrates here.
......
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:
......
......@@ -56,5 +56,5 @@ int loop5 (int n, struct tail5 *x)
/* 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" } } */
......@@ -1848,7 +1848,7 @@ loop_prefetch_arrays (struct loop *loop)
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment