From 2925a5c27e3f90373d77b9bc06d95c7b0a49b1e4 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 25 Apr 2015 15:21:28 +0200 Subject: [PATCH] isl_flow.c: compute_val_based_dependences: avoid use of isl_set_empty_like This function will be removed in a subsequent commit. Signed-off-by: Sven Verdoolaege --- isl_flow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/isl_flow.c b/isl_flow.c index b3497a6d..2f026d50 100644 --- a/isl_flow.c +++ b/isl_flow.c @@ -935,7 +935,7 @@ static __isl_give isl_flow *compute_val_based_dependences( depth = 2 * isl_map_dim(acc->sink.map, isl_dim_in) + 1; mustdo = isl_map_domain(isl_map_copy(acc->sink.map)); - maydo = isl_set_empty_like(mustdo); + maydo = isl_set_empty(isl_set_get_space(mustdo)); if (!mustdo || !maydo) goto error; if (isl_set_plain_is_empty(mustdo)) @@ -948,7 +948,9 @@ static __isl_give isl_flow *compute_val_based_dependences( for (level = depth; level >= 1; --level) { for (j = acc->n_must-1; j >=0; --j) { - must_rel[j] = isl_map_empty_like(res->dep[2 * j].map); + isl_space *space; + space = isl_map_get_space(res->dep[2 * j].map); + must_rel[j] = isl_map_empty(space); may_rel[j] = isl_map_copy(must_rel[j]); } -- 2.11.4.GIT