prefetch-5.c: Remove xfail.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 28 May 2016 16:23:33 +0000 (18:23 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 28 May 2016 16:23:33 +0000 (16:23 +0000)
* 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

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/prefetch-5.c
gcc/tree-ssa-loop-prefetch.c

index 385674508dff07f60ebcdae6ed9a22b3cd39c586..cf3c946dca97af98576192bc0f7a4644da469f50 100644 (file)
@@ -1,3 +1,8 @@
+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
index 881470ba5c531d3a6f4b6e99d6d317b7d049028c..27fdbe1497aa88b9229ff7511c367efd1e25cdbe 100644 (file)
@@ -1,3 +1,7 @@
+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:
index fc2c267b178ef2364992c213762dd03566a09919..af1bb13c254c59a8d91ecbea378790bdb7ed90c2 100644 (file)
@@ -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"  } } */
index fb8c476376934b3d6196f0efecfe3bdd6d042457..e43ced656f52af1a26d4e4500686ea41f3047abb 100644 (file)
@@ -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.  */