OSDN Git Service

Cleanup: remove FIXMEs, add new function.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Mar 2010 17:35:15 +0000 (17:35 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:12:23 +0000 (14:12 +0900)
2010-03-10  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
forward declaration.
* graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
(add_upper_bounds_from_estimated_nit): New.
(build_loop_iteration_domains): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157436 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3a49ccc..0ca526c 100644 (file)
@@ -1,3 +1,11 @@
+2010-03-10  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
+       forward declaration.
+       * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
+       (add_upper_bounds_from_estimated_nit): New.
+       (build_loop_iteration_domains): Use it.
+
 2010-03-09  Sebastian Pop  <sebastian.pop@amd.com>
 
        * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
index e2d4192..e8ca210 100644 (file)
@@ -1044,7 +1044,7 @@ add_upper_bounds_from_estimated_nit (scop_p scop, double_int nit,
                                     ppl_dimension_type dim,
                                     ppl_Linear_Expression_t ub_expr)
 {
-  mpz_t val;
+  Value val;
   ppl_Linear_Expression_t nb_iters_le;
   ppl_Polyhedron_t pol;
   ppl_Coefficient_t coef;
@@ -1056,10 +1056,10 @@ add_upper_bounds_from_estimated_nit (scop_p scop, double_int nit,
                                                    ub_expr);
 
   /* Construct the negated number of last iteration in VAL.  */
-  mpz_init (val);
+  value_init (val);
   mpz_set_double_int (val, nit, false);
-  mpz_sub_ui (val, val, 1);
-  mpz_neg (val, val);
+  value_sub_int (val, val, 1);
+  value_oppose (val, val);
 
   /* NB_ITERS_LE holds the number of last iteration in
      parametrical form.  Subtract estimated number of last
@@ -1099,7 +1099,7 @@ add_upper_bounds_from_estimated_nit (scop_p scop, double_int nit,
   ppl_delete_Polyhedron (pol);
   ppl_delete_Linear_Expression (nb_iters_le);
   ppl_delete_Constraint (ub);
-  mpz_clear (val);
+  value_clear (val);
 }
 
 /* Builds the constraint polyhedra for LOOP in SCOP.  OUTER_PH gives