From 1a8821c54a5ff570e5d6005924ab9a165090d1cd Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 13 Oct 2017 10:40:42 +0000 Subject: graphite-isl-ast-to-gimple.c (max_mode_int_precision, [...]): Avoid global constructor by moving ... 2017-10-13 Richard Biener * 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 --- gcc/graphite-sese-to-poly.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gcc/graphite-sese-to-poly.c') 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. */ -- cgit v1.1