isl_map_simplify.c: uset_gist: break early if intersection is empty
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 21 Mar 2009 11:47:42 +0000 (12:47 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 23 Mar 2009 09:00:20 +0000 (10:00 +0100)
isl_map_simplify.c

index bb48508..faa0b93 100644 (file)
@@ -1409,6 +1409,8 @@ static struct isl_basic_set *uset_gist(struct isl_basic_set *bset,
                                        isl_basic_set_copy(context));
        if (!bset)
                goto error;
+       if (isl_basic_set_fast_is_empty(bset))
+               goto done;
 
        if (bset->n_eq > 0) {
                struct isl_basic_set *affine_hull;