isl_pw_qpolynomial{,_fold}_gist: use simple hull instead of convex hull
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 15 Jun 2010 10:30:41 +0000 (12:30 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 15 Jun 2010 10:30:41 +0000 (12:30 +0200)
We need a basic set to gist the domain.  We used to take the convex hull
of the input set, but the convex hull operation can be very slow in isl.
Use the simple hull instead.

isl_pw_templ.c

index 97321f6..221b7f4 100644 (file)
@@ -338,7 +338,7 @@ __isl_give PW *FN(PW,gist)(__isl_take PW *pw, __isl_take isl_set *context)
                return pw;
        }
 
-       hull = isl_set_convex_hull(isl_set_copy(context));
+       hull = isl_set_simple_hull(isl_set_copy(context));
 
        pw = FN(PW,cow)(pw);
        if (!pw)