Commit e84aaa33 by Sebastian Pop Committed by Sebastian Pop

Make build_poly_scop not return a bool.

2010-03-09  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
	* graphite-sese-to-poly.h (build_poly_scop): Same.

From-SVN: r157432
parent 4e7dd376
2010-03-09 Sebastian Pop <sebastian.pop@amd.com> 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
* graphite-sese-to-poly.h (build_poly_scop): Same.
2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (build_poly_scop): Limit scops following * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
the number of parameters in the scop. Use as an upper bound the number of parameters in the scop. Use as an upper bound
PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS. PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
......
...@@ -2932,7 +2932,7 @@ scop_ivs_can_be_represented (scop_p scop) ...@@ -2932,7 +2932,7 @@ scop_ivs_can_be_represented (scop_p scop)
/* Builds the polyhedral representation for a SESE region. */ /* Builds the polyhedral representation for a SESE region. */
bool void
build_poly_scop (scop_p scop) build_poly_scop (scop_p scop)
{ {
sese region = SCOP_REGION (scop); sese region = SCOP_REGION (scop);
...@@ -2950,12 +2950,11 @@ build_poly_scop (scop_p scop) ...@@ -2950,12 +2950,11 @@ build_poly_scop (scop_p scop)
sense to optimize a scop containing only PBBs that do not belong sense to optimize a scop containing only PBBs that do not belong
to any loops. */ to any loops. */
if (nb_pbbs_in_loops (scop) == 0) if (nb_pbbs_in_loops (scop) == 0)
return false; return;
scop_canonicalize_loops (scop); scop_canonicalize_loops (scop);
if (!scop_ivs_can_be_represented (scop)) if (!scop_ivs_can_be_represented (scop))
return false; return;
build_sese_loop_nests (region); build_sese_loop_nests (region);
build_sese_conditions (region); build_sese_conditions (region);
...@@ -2963,7 +2962,7 @@ build_poly_scop (scop_p scop) ...@@ -2963,7 +2962,7 @@ build_poly_scop (scop_p scop)
max_dim = PARAM_VALUE (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS); max_dim = PARAM_VALUE (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS);
if (scop_nb_params (scop) > max_dim) if (scop_nb_params (scop) > max_dim)
return false; return;
build_scop_iteration_domain (scop); build_scop_iteration_domain (scop);
build_scop_context (scop); build_scop_context (scop);
...@@ -2972,9 +2971,10 @@ build_poly_scop (scop_p scop) ...@@ -2972,9 +2971,10 @@ build_poly_scop (scop_p scop)
scop_to_lst (scop); scop_to_lst (scop);
build_scop_scattering (scop); build_scop_scattering (scop);
build_scop_drs (scop); build_scop_drs (scop);
POLY_SCOP_P (scop) = true;
return true; /* This SCoP has been translated to the polyhedral
representation. */
POLY_SCOP_P (scop) = true;
} }
/* Always return false. Exercise the scop_to_clast function. */ /* Always return false. Exercise the scop_to_clast function. */
......
...@@ -28,7 +28,7 @@ struct base_alias_pair ...@@ -28,7 +28,7 @@ struct base_alias_pair
int *alias_set; int *alias_set;
}; };
bool build_poly_scop (scop_p); void build_poly_scop (scop_p);
void check_poly_representation (scop_p); void check_poly_representation (scop_p);
#endif #endif
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