From aae929a0dbd6cdb4a264678c95cdea94551d3b92 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 11 Jun 2013 16:34:26 +0200 Subject: [PATCH] scop_plus.cc: access_collect_arrays: use pet_expr_is_affine Signed-off-by: Sven Verdoolaege --- scop_plus.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scop_plus.cc b/scop_plus.cc index 13cb26f..c8e5695 100644 --- a/scop_plus.cc +++ b/scop_plus.cc @@ -49,7 +49,7 @@ static void access_collect_arrays(struct pet_expr *expr, isl_id *id; ValueDecl *decl; - if (!isl_map_has_tuple_id(expr->acc.access, isl_dim_out)) + if (pet_expr_is_affine(expr)) return; id = isl_map_get_tuple_id(expr->acc.access, isl_dim_out); if (!id) -- 2.11.4.GIT