From 9e36da6ee6182dbe6e6915d28b52e4eb0c5e4d38 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 26 Mar 2014 11:12:19 +0100 Subject: [PATCH] pet_expr_is_affine: avoid using access relation In a future commit, we will only keep track of access relation(s) when they cannot be trivially derived from the index expression. Check the index expression instead of the access relation. Signed-off-by: Sven Verdoolaege --- expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expr.c b/expr.c index 7265d71..8126b94 100644 --- a/expr.c +++ b/expr.c @@ -758,7 +758,7 @@ int pet_expr_is_affine(__isl_keep pet_expr *expr) if (expr->type != pet_expr_access) return 0; - has_id = isl_map_has_tuple_id(expr->acc.access, isl_dim_out); + has_id = isl_multi_pw_aff_has_tuple_id(expr->acc.index, isl_dim_out); if (has_id < 0) return -1; -- 2.11.4.GIT