From 6298953c961e7118762fc26f1e57a17ebbe6ab51 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 18 Jun 2013 16:02:40 +0200 Subject: [PATCH] scop.c: expr_writes: use pet_expr_is_affine Signed-off-by: Sven Verdoolaege --- scop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scop.c b/scop.c index 1b150dd..ea6557c 100644 --- a/scop.c +++ b/scop.c @@ -2769,7 +2769,7 @@ static int expr_writes(struct pet_expr *expr, __isl_keep isl_id *id) return 0; if (!expr->acc.write) return 0; - if (!isl_map_has_tuple_id(expr->acc.access, isl_dim_out)) + if (pet_expr_is_affine(expr)) return 0; write_id = isl_map_get_tuple_id(expr->acc.access, isl_dim_out); -- 2.11.4.GIT