isl_map_power: coalesce domain and range
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 8 Feb 2010 11:08:06 +0000 (12:08 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 8 Feb 2010 18:31:42 +0000 (19:31 +0100)
isl_transitive_closure.c

index eecdbe5..74ede4d 100644 (file)
@@ -339,7 +339,9 @@ static __isl_give isl_map *map_power(__isl_take isl_map *map, unsigned param,
                goto error);
 
        domain = isl_map_domain(isl_map_copy(map));
+       domain = isl_set_coalesce(domain);
        range = isl_map_range(isl_map_copy(map));
+       range = isl_set_coalesce(range);
        app = isl_map_from_domain_and_range(isl_set_copy(domain),
                                            isl_set_copy(range));