aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2010-03-13 17:34:44 +0000
committerSebastian Pop <spop@gcc.gnu.org>2010-03-13 17:34:44 +0000
commite84aaa332076c0b83e61326d3a1428bcf8ee8943 (patch)
treed25b0cc41e3c46f51036322395676f08751c1fe7 /gcc
parent4e7dd37645ae785b9d4d1d06d24a4ee130f2f09b (diff)
downloadgcc-e84aaa332076c0b83e61326d3a1428bcf8ee8943.zip
gcc-e84aaa332076c0b83e61326d3a1428bcf8ee8943.tar.gz
gcc-e84aaa332076c0b83e61326d3a1428bcf8ee8943.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog.graphite5
-rw-r--r--gcc/graphite-sese-to-poly.c14
-rw-r--r--gcc/graphite-sese-to-poly.h2
3 files changed, 13 insertions, 8 deletions
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 61b463b..2aa6fd5 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 ae4a083..75be56d 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 0737c49..3213471 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