From c907963310bfbda458204cc933f2b8a339bd7f5a Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 14 Oct 2010 11:28:33 +0200 Subject: [PATCH] compute explicit divs for context before calling isl_basic_map_gist Signed-off-by: Sven Verdoolaege --- isl_map_simplify.c | 1 + isl_pw_templ.c | 1 + 2 files changed, 2 insertions(+) diff --git a/isl_map_simplify.c b/isl_map_simplify.c index a82f239..036b36f 100644 --- a/isl_map_simplify.c +++ b/isl_map_simplify.c @@ -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)); } diff --git a/isl_pw_templ.c b/isl_pw_templ.c index a56da74..a3cce71 100644 --- a/isl_pw_templ.c +++ b/isl_pw_templ.c @@ -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); -- 2.7.4