isl_basic_map_gauss: also set progress if a div expression has been detected
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 13 Aug 2012 16:54:13 +0000 (18:54 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 6 Sep 2012 12:41:41 +0000 (14:41 +0200)
The div expression may be equal to that of another div and one of them
should then be eliminated in the next iteration of isl_basic_map_simplify.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map_simplify.c

index 9897d80..9cebefb 100644 (file)
@@ -645,6 +645,8 @@ struct isl_basic_map *isl_basic_map_gauss(
                        isl_int_set_si(bmap->div[div][1+1+last_var], 0);
                        isl_int_set(bmap->div[div][0],
                                    bmap->eq[done][1+last_var]);
+                       if (progress)
+                               *progress = 1;
                        ISL_F_CLR(bmap, ISL_BASIC_MAP_NORMALIZED);
                }
        }