isl_union_pw_*_gist: special case gist with respect to parameter domains
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 2 Nov 2011 12:06:44 +0000 (13:06 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 2 Nov 2011 15:35:37 +0000 (16:35 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_union_templ.c

index ad158e3..7f5c2ae 100644 (file)
@@ -590,6 +590,8 @@ __isl_give UNION *FN(UNION,intersect_domain)(__isl_take UNION *u,
 __isl_give UNION *FN(UNION,gist)(__isl_take UNION *u,
        __isl_take isl_union_set *uset)
 {
+       if (isl_union_set_is_params(uset))
+               return FN(UNION,gist_params)(u, isl_set_from_union_set(uset));
        return match_set_op(u, uset, &FN(PW,gist));
 }