From: Sebastian Pop Date: Fri, 8 Jul 2011 19:15:11 +0000 (+0000) Subject: Remove continue from loop, add one more assert. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e92c50201fc9cb12b506079857d41b8d24591f76;p=gcc.git Remove continue from loop, add one more assert. 2011-07-08 Sebastian Pop * graphite-dependences.c (build_alias_set_powerset): Remove continue from loop, add one more assert. From-SVN: r176057 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 16451f8daa1..60412b237eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-08 Sebastian Pop + + * graphite-dependences.c (build_alias_set_powerset): Remove + continue from loop, add one more assert. + 2011-07-08 Georg-Johann Lay PR target/46779 diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 2a14fc4607f..628fb7edc58 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,8 @@ +2011-05-24 Sebastian Pop + + * graphite-dependences.c (build_alias_set_powerset): Remove + continue from loop, add one more assert. + 2011-05-24 Sebastian Pop * graphite-dependences.c (graphite_outer_subscript_bound): Remove diff --git a/gcc/graphite-dependences.c b/gcc/graphite-dependences.c index b9b1d1b5880..081aa691ba6 100644 --- a/gcc/graphite-dependences.c +++ b/gcc/graphite-dependences.c @@ -171,19 +171,16 @@ build_alias_set_powerset (ppl_Pointset_Powerset_C_Polyhedron_t alias_powerset, { ppl_dimension_type *ds; ppl_dimension_type access_dim; - unsigned i, pos = 0; + unsigned i, pos; ppl_Pointset_Powerset_C_Polyhedron_space_dimension (alias_powerset, &access_dim); - ds = XNEWVEC (ppl_dimension_type, access_dim-1); - for (i = 0; i < access_dim; i++) - { - if (i == alias_dim) - continue; + ds = XNEWVEC (ppl_dimension_type, access_dim - 1); + gcc_assert (alias_dim < access_dim); - ds[pos] = i; - pos++; - } + for (pos = 0, i = 0; i < access_dim; i++) + if (i != alias_dim) + ds[pos++] = i; ppl_Pointset_Powerset_C_Polyhedron_remove_space_dimensions (alias_powerset, ds,