From feaa122ef57ac99a7fe031a589a16baca83e4da0 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 4 Nov 2015 09:42:16 +0100 Subject: [PATCH] isl_map_simplify.c: ok_to_set_div_from_bound: use isl_basic_map_offset This reduces the dependence on the internal representation. Signed-off-by: Sven Verdoolaege --- isl_map_simplify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_map_simplify.c b/isl_map_simplify.c index 7d240269..07a30769 100644 --- a/isl_map_simplify.c +++ b/isl_map_simplify.c @@ -1084,7 +1084,7 @@ static isl_bool ok_to_set_div_from_bound(__isl_keep isl_basic_map *bmap, int div, int ineq) { int j; - unsigned total = 1 + isl_space_dim(bmap->dim, isl_dim_all); + unsigned total = isl_basic_map_offset(bmap, isl_dim_div); /* Not defined in terms of unknown divs */ for (j = 0; j < bmap->n_div; ++j) { -- 2.11.4.GIT