isl_map_drop_constraints_involving_dims: turn off disjoint flag
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 7 Dec 2015 09:26:13 +0000 (7 10:26 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 7 Dec 2015 16:18:48 +0000 (7 17:18 +0100)
Since isl_map_drop_constraints_involving_dims removes constraints,
the result may no longer be disjoint.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_affine_hull.c

index e7bde3f..626c4e8 100644 (file)
@@ -652,6 +652,9 @@ __isl_give isl_map *isl_map_drop_constraints_involving_dims(
                        return isl_map_free(map);
        }
 
+       if (map->n > 1)
+               ISL_F_CLR(map, ISL_MAP_DISJOINT);
+
        return map;
 }