]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make build_poly_scop not return a bool.
authorSebastian Pop <sebastian.pop@amd.com>
Sat, 13 Mar 2010 17:34:44 +0000 (17:34 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Sat, 13 Mar 2010 17:34:44 +0000 (17:34 +0000)
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

gcc/ChangeLog.graphite
gcc/graphite-sese-to-poly.c
gcc/graphite-sese-to-poly.h

index 61b463bb685b85137c06c0201c79268a8e4fd3fd..2aa6fd55b86d470a08ef936e05d44c82a7d22847 100644 (file)
@@ -1,3 +1,8 @@
+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
index ae4a083663a2607b020a1603f7ef812a4b44b1c6..75be56dcdc0ebeca970ca4f007798e954b072ae0 100644 (file)
@@ -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.  */
index 0737c49bd944e8eea5eb7c0819e1f561cc3cdfe8..3213471eb251ef555c6f39f7950a0439e11809dd 100644 (file)
@@ -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