From cecf8c79bd7dc252b29ad4ec8f99721992cf6bef Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 14 Apr 2016 17:22:28 +0200 Subject: [PATCH] isl_scheduler.c: add_inter_constraints: rename "dim" variable to "space" Signed-off-by: Sven Verdoolaege --- isl_scheduler.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/isl_scheduler.c b/isl_scheduler.c index 87a60ae4..529d41d7 100644 --- a/isl_scheduler.c +++ b/isl_scheduler.c @@ -3665,7 +3665,7 @@ static int add_inter_constraints(struct isl_sched_graph *graph, { unsigned total; isl_ctx *ctx = isl_map_get_ctx(map); - isl_space *dim; + isl_space *space; isl_dim_map *dim_map; isl_basic_set *coef; struct isl_sched_node *src = edge->src; @@ -3675,7 +3675,8 @@ static int add_inter_constraints(struct isl_sched_graph *graph, if (!coef) return -1; - dim = isl_space_domain(isl_space_unwrap(isl_basic_set_get_space(coef))); + space = isl_space_unwrap(isl_basic_set_get_space(coef)); + space = isl_space_domain(space); total = isl_basic_set_total_dim(graph->lp); dim_map = isl_dim_map_alloc(ctx, total); @@ -3686,27 +3687,27 @@ static int add_inter_constraints(struct isl_sched_graph *graph, isl_dim_map_range(dim_map, dst->start + 1, 2, 1, 1, dst->nparam, -1); isl_dim_map_range(dim_map, dst->start + 2, 2, 1, 1, dst->nparam, 1); isl_dim_map_range(dim_map, dst->start + 2 * dst->nparam + 1, 2, - isl_space_dim(dim, isl_dim_set) + src->nvar, 1, + isl_space_dim(space, isl_dim_set) + src->nvar, 1, dst->nvar, -1); isl_dim_map_range(dim_map, dst->start + 2 * dst->nparam + 2, 2, - isl_space_dim(dim, isl_dim_set) + src->nvar, 1, + isl_space_dim(space, isl_dim_set) + src->nvar, 1, dst->nvar, 1); isl_dim_map_range(dim_map, src->start, 0, 0, 0, 1, -1); isl_dim_map_range(dim_map, src->start + 1, 2, 1, 1, src->nparam, 1); isl_dim_map_range(dim_map, src->start + 2, 2, 1, 1, src->nparam, -1); isl_dim_map_range(dim_map, src->start + 2 * src->nparam + 1, 2, - isl_space_dim(dim, isl_dim_set), 1, + isl_space_dim(space, isl_dim_set), 1, src->nvar, 1); isl_dim_map_range(dim_map, src->start + 2 * src->nparam + 2, 2, - isl_space_dim(dim, isl_dim_set), 1, + isl_space_dim(space, isl_dim_set), 1, src->nvar, -1); graph->lp = isl_basic_set_extend_constraints(graph->lp, coef->n_eq, coef->n_ineq); graph->lp = isl_basic_set_add_constraints_dim_map(graph->lp, coef, dim_map); - isl_space_free(dim); + isl_space_free(space); return 0; } -- 2.11.4.GIT