isl_map_is_subset: exploit another easy special case
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 10 Oct 2009 13:09:10 +0000 (15:09 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 12 Oct 2009 20:26:24 +0000 (22:26 +0200)
isl_map.c

index 57b9ad9..796af48 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -4079,6 +4079,9 @@ int isl_map_is_subset(struct isl_map *map1, struct isl_map *map2)
        if (isl_map_is_empty(map2))
                return 0;
 
+       if (isl_map_fast_is_universe(map2))
+               return 1;
+
        diff = isl_map_subtract(isl_map_copy(map1), isl_map_copy(map2));
        if (!diff)
                return -1;