Commit 558b3185 by Richard Biener Committed by Richard Biener

graphite.c: Include tree-vectorizer.h for find_loop_location.

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
parent a4476973
2017-02-01 Richard Biener <rguenther@suse.de> 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 PR middle-end/79315
* tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
was not set before. was not set before.
......
...@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see
#include "dbgcnt.h" #include "dbgcnt.h"
#include "tree-parloops.h" #include "tree-parloops.h"
#include "tree-cfgcleanup.h" #include "tree-cfgcleanup.h"
#include "tree-vectorizer.h"
#include "graphite.h" #include "graphite.h"
/* Print global statistics to FILE. */ /* Print global statistics to FILE. */
...@@ -328,6 +329,11 @@ graphite_transform_loops (void) ...@@ -328,6 +329,11 @@ graphite_transform_loops (void)
and could be in an inconsistent state. */ and could be in an inconsistent state. */
if (!graphite_regenerate_ast_isl (scop)) if (!graphite_regenerate_ast_isl (scop))
break; 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); free_scops (scops);
......
...@@ -3322,17 +3322,14 @@ parallelize_loops (bool oacc_kernels_p) ...@@ -3322,17 +3322,14 @@ parallelize_loops (bool oacc_kernels_p)
changed = true; changed = true;
skip_loop = loop->inner; skip_loop = loop->inner;
if (dump_file && (dump_flags & TDF_DETAILS))
{ loop_loc = find_loop_location (loop);
if (loop->inner) if (loop->inner)
fprintf (dump_file, "parallelizing outer loop %d\n",loop->header->index); dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loop_loc,
else "parallelizing outer loop %d\n", loop->num);
fprintf (dump_file, "parallelizing inner loop %d\n",loop->header->index); else
loop_loc = find_loop_location (loop); dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loop_loc,
if (loop_loc != UNKNOWN_LOCATION) "parallelizing inner loop %d\n", loop->num);
fprintf (dump_file, "\nloop at %s:%d: ",
LOCATION_FILE (loop_loc), LOCATION_LINE (loop_loc));
}
gen_parallel_loop (loop, &reduction_list, gen_parallel_loop (loop, &reduction_list,
n_threads, &niter_desc, oacc_kernels_p); n_threads, &niter_desc, oacc_kernels_p);
......
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