diff options
author | Richard Biener <rguenther@suse.de> | 2017-10-13 10:40:42 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-10-13 10:40:42 +0000 |
commit | 1a8821c54a5ff570e5d6005924ab9a165090d1cd (patch) | |
tree | a3e1d74a124b61dedb97cad341da58005d69f3d3 /gcc/graphite-sese-to-poly.c | |
parent | 2ecf9ac7060bc6b902f5bed252e4a39f59d6f30b (diff) | |
download | gcc-1a8821c54a5ff570e5d6005924ab9a165090d1cd.zip gcc-1a8821c54a5ff570e5d6005924ab9a165090d1cd.tar.gz gcc-1a8821c54a5ff570e5d6005924ab9a165090d1cd.tar.bz2 |
graphite-isl-ast-to-gimple.c (max_mode_int_precision, [...]): Avoid global constructor by moving ...
2017-10-13 Richard Biener <rguenther@suse.de>
* graphite-isl-ast-to-gimple.c (max_mode_int_precision,
graphite_expression_type_precision): Avoid global constructor
by moving ...
(translate_isl_ast_to_gimple::translate_isl_ast_to_gimple): Here.
(translate_isl_ast_to_gimple::graphite_expr_type): Add type
member.
(translate_isl_ast_to_gimple::translate_isl_ast_node_for): Use it.
(translate_isl_ast_to_gimple::build_iv_mapping): Likewise.
(translate_isl_ast_to_gimple::graphite_create_new_guard): Likewise.
* graphite-sese-to-poly.c (build_original_schedule): Return nothing.
* gcc.dg/graphite/scop-10.c: Enlarge array to avoid undefined
behavior.
* gcc.dg/graphite/scop-7.c: Likewise.
* gcc.dg/graphite/scop-8.c: Likewise.
From-SVN: r253719
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index ed6cbec..fc16ca9 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -1194,7 +1194,7 @@ build_schedule_loop_nest (scop_p scop, int *index, loop_p context_loop) /* Build the schedule of the SCOP. */ -static bool +static void build_original_schedule (scop_p scop) { int i = 0; @@ -1216,9 +1216,6 @@ build_original_schedule (scop_p scop) fprintf (dump_file, "[sese-to-poly] original schedule:\n"); print_isl_schedule (dump_file, scop->original_schedule); } - if (!scop->original_schedule) - return false; - return true; } /* Builds the polyhedral representation for a SESE region. */ |