From d8277ff25d6b7115e456c5be3875999d923e13a2 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 3 Jun 2011 19:34:36 +0200 Subject: [PATCH] isl_union_map_range_product: only consider pairs of maps with matching domains Signed-off-by: Sven Verdoolaege --- isl_union_map.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isl_union_map.c b/isl_union_map.c index c2ba975..ae6bf61 100644 --- a/isl_union_map.c +++ b/isl_union_map.c @@ -882,6 +882,10 @@ static int range_product_entry(void **entry, void *user) struct isl_union_map_bin_data *data = user; isl_map *map2 = *entry; + if (!isl_dim_tuple_match(data->map->dim, isl_dim_in, + map2->dim, isl_dim_in)) + return 0; + map2 = isl_map_range_product(isl_map_copy(data->map), isl_map_copy(map2)); -- 2.7.4