diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-13 17:34:44 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-13 17:34:44 +0000 |
commit | f49215cea754cbd1f73143110bbc832c05fd597f (patch) | |
tree | d25b0cc41e3c46f51036322395676f08751c1fe7 | |
parent | c2e502a56a95d14a87d60f288c1aa8612fea911c (diff) | |
download | gcc-f49215cea754cbd1f73143110bbc832c05fd597f.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157432 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.graphite | 5 | ||||
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 14 | ||||
-rw-r--r-- | gcc/graphite-sese-to-poly.h | 2 |
3 files changed, 13 insertions, 8 deletions
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 61b463bb685..2aa6fd55b86 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,5 +1,10 @@ 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 the number of parameters in the scop. Use as an upper bound PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS. diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index ae4a083663a..75be56dcdc0 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2932,7 +2932,7 @@ scop_ivs_can_be_represented (scop_p scop) /* Builds the polyhedral representation for a SESE region. */ -bool +void build_poly_scop (scop_p scop) { sese region = SCOP_REGION (scop); @@ -2950,12 +2950,11 @@ build_poly_scop (scop_p scop) sense to optimize a scop containing only PBBs that do not belong to any loops. */ if (nb_pbbs_in_loops (scop) == 0) - return false; + return; scop_canonicalize_loops (scop); - if (!scop_ivs_can_be_represented (scop)) - return false; + return; build_sese_loop_nests (region); build_sese_conditions (region); @@ -2963,7 +2962,7 @@ build_poly_scop (scop_p scop) max_dim = PARAM_VALUE (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS); if (scop_nb_params (scop) > max_dim) - return false; + return; build_scop_iteration_domain (scop); build_scop_context (scop); @@ -2972,9 +2971,10 @@ build_poly_scop (scop_p scop) scop_to_lst (scop); build_scop_scattering (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. */ diff --git a/gcc/graphite-sese-to-poly.h b/gcc/graphite-sese-to-poly.h index 0737c49bd94..3213471eb25 100644 --- a/gcc/graphite-sese-to-poly.h +++ b/gcc/graphite-sese-to-poly.h @@ -28,7 +28,7 @@ struct base_alias_pair int *alias_set; }; -bool build_poly_scop (scop_p); +void build_poly_scop (scop_p); void check_poly_representation (scop_p); #endif |