From bcd9ab7dc8e009ca85ee6a1b187f0177bdf41c9f Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 11 Jun 2013 16:06:48 +0200 Subject: [PATCH] scop.c: expr_collect_accesses: use pet_expr_is_affine Signed-off-by: Sven Verdoolaege --- scop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scop.c b/scop.c index 51c595a..1b150dd 100644 --- a/scop.c +++ b/scop.c @@ -2633,8 +2633,7 @@ static __isl_give isl_union_map *expr_collect_accesses(struct pet_expr *expr, accesses = expr_collect_accesses(expr->args[i], read, write, accesses); - if (expr->type == pet_expr_access && - isl_map_has_tuple_id(expr->acc.access, isl_dim_out) && + if (expr->type == pet_expr_access && !pet_expr_is_affine(expr) && ((read && expr->acc.read) || (write && expr->acc.write))) accesses = isl_union_map_add_map(accesses, isl_map_copy(expr->acc.access)); -- 2.11.4.GIT