From 148bd2eeccb79b4d19da17a74111ff7049fbced4 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 5 Jul 2013 11:42:05 +0200 Subject: [PATCH] isl_ast_build_compute_gist_pw_aff: handle parametric domains When the build domain is a parametric set, the argument to isl_ast_build_compute_gist_pw_aff does not have a domain and can therefore not be pulled back. There is also no need to perform the pullback since there can be no fixed values for the domain dimensions if there are no domain dimensions. Signed-off-by: Sven Verdoolaege --- isl_ast_build.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isl_ast_build.c b/isl_ast_build.c index dd1aa7b6..7a136a1f 100644 --- a/isl_ast_build.c +++ b/isl_ast_build.c @@ -1914,7 +1914,8 @@ __isl_give isl_pw_aff *isl_ast_build_compute_gist_pw_aff( if (!build) goto error; - pa = isl_pw_aff_pullback_multi_aff(pa, + if (!isl_set_is_params(build->domain)) + pa = isl_pw_aff_pullback_multi_aff(pa, isl_multi_aff_copy(build->values)); pa = isl_pw_aff_gist(pa, isl_set_copy(build->domain)); -- 2.11.4.GIT