From bcf5b0f4ef86b710cf73b13e63e2f7f214627759 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 10 Mar 2011 18:22:01 +0100 Subject: [PATCH] isl interface: remove name and internal structure of iteration domain spaces CLooG has no use for them and also cannot handle them. Names and internal structure usually disappear anyway due to some of the operations performed on the sets, but in some special cases, this would not happen soon enough, so let's just do it explicitly. The new code also avoids the use of an undocumented and outdated isl function. Reported-by: Tomo Tested-by: Tomo Signed-off-by: Sven Verdoolaege --- source/isl/domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/isl/domain.c b/source/isl/domain.c index b340c48..65caa4b 100644 --- a/source/isl/domain.c +++ b/source/isl/domain.c @@ -1320,7 +1320,8 @@ CloogDomain *cloog_domain_scatter(CloogDomain *domain, CloogScattering *scatt) map = isl_map_reverse(isl_map_copy(map)); map = isl_map_intersect_range(map, set); - return cloog_domain_from_isl_set(isl_set_from_map(map)); + set = isl_set_flatten(isl_map_wrap(map)); + return cloog_domain_from_isl_set(set); } static int add_domain_from_map(__isl_take isl_map *map, void *user) -- 2.11.4.GIT