compute explicit divs for context before calling isl_basic_map_gist
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 14 Oct 2010 09:28:33 +0000 (11:28 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 17 Oct 2010 09:17:22 +0000 (11:17 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map_simplify.c
isl_pw_templ.c

index a82f239..036b36f 100644 (file)
@@ -1888,6 +1888,7 @@ error:
 __isl_give isl_map *isl_map_gist(__isl_take isl_map *map,
        __isl_take isl_map *context)
 {
+       context = isl_map_compute_divs(context);
        return isl_map_gist_basic_map(map, isl_map_simple_hull(context));
 }
 
index a56da74..a3cce71 100644 (file)
@@ -401,6 +401,7 @@ __isl_give PW *FN(PW,gist)(__isl_take PW *pw, __isl_take isl_set *context)
                return pw;
        }
 
+       context = isl_set_compute_divs(context);
        hull = isl_set_simple_hull(isl_set_copy(context));
 
        pw = FN(PW,cow)(pw);