From 2f6c5a1dd4aacefe809fac3a1a82729f26f9906f Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 13 Aug 2012 18:54:13 +0200 Subject: [PATCH] isl_basic_map_gauss: also set progress if a div expression has been detected 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 --- isl_map_simplify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_map_simplify.c b/isl_map_simplify.c index 9897d80..9cebefb 100644 --- a/isl_map_simplify.c +++ b/isl_map_simplify.c @@ -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); } } -- 2.7.4