graphite.c: Include tree-vectorizer.h for find_loop_location.
authorRichard Biener <rguenther@suse.de>
Wed, 1 Feb 2017 14:05:09 +0000 (14:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Feb 2017 14:05:09 +0000 (14:05 +0000)
2017-02-01  Richard Biener  <rguenther@suse.de>

* graphite.c: Include tree-vectorizer.h for find_loop_location.
(graphite_transform_loops): Provide opt-info for optimized nests.
* tree-parloop.c (parallelize_loops): Provide opt-info for
parallelized loops.

From-SVN: r245096

gcc/ChangeLog
gcc/graphite.c
gcc/tree-parloops.c

index 40a1a92d953c645f8a51de7f4452730d963ddb70..bb31a8f4b16282579ad6b9c91171cf4c9ddd496d 100644 (file)
@@ -1,3 +1,10 @@
+2017-02-01  Richard Biener  <rguenther@suse.de>
+
+       * graphite.c: Include tree-vectorizer.h for find_loop_location.
+       (graphite_transform_loops): Provide opt-info for optimized nests.
+       * tree-parloop.c (parallelize_loops): Provide opt-info for
+       parallelized loops.
+
 2017-02-01  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/79315
index a4ee8f0fd71376edd3a7094549821f5268d92396..1554d517f8c57028aa1af9317d64c3c33a1712bb 100644 (file)
@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "dbgcnt.h"
 #include "tree-parloops.h"
 #include "tree-cfgcleanup.h"
+#include "tree-vectorizer.h"
 #include "graphite.h"
 
 /* Print global statistics to FILE.  */
@@ -328,6 +329,11 @@ graphite_transform_loops (void)
           and could be in an inconsistent state.  */
        if (!graphite_regenerate_ast_isl (scop))
          break;
+
+       location_t loc = find_loop_location
+                          (scop->scop_info->region.entry->dest->loop_father);
+       dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
+                        "loop nest optimized\n");
       }
 
   free_scops (scops);
index 5e37af2f2b187b4860c7ded43ae60cb0948e317a..779258b90b4a34db66f39d4af689deed77903c07 100644 (file)
@@ -3322,17 +3322,14 @@ parallelize_loops (bool oacc_kernels_p)
 
       changed = true;
       skip_loop = loop->inner;
-      if (dump_file && (dump_flags & TDF_DETAILS))
-      {
-       if (loop->inner)
-         fprintf (dump_file, "parallelizing outer loop %d\n",loop->header->index);
-       else
-         fprintf (dump_file, "parallelizing inner loop %d\n",loop->header->index);
-       loop_loc = find_loop_location (loop);
-       if (loop_loc != UNKNOWN_LOCATION)
-         fprintf (dump_file, "\nloop at %s:%d: ",
-                  LOCATION_FILE (loop_loc), LOCATION_LINE (loop_loc));
-      }
+
+      loop_loc = find_loop_location (loop);
+      if (loop->inner)
+       dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loop_loc,
+                        "parallelizing outer loop %d\n", loop->num);
+      else
+       dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loop_loc,
+                        "parallelizing inner loop %d\n", loop->num);
 
       gen_parallel_loop (loop, &reduction_list,
                         n_threads, &niter_desc, oacc_kernels_p);