X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_schedule.c;h=b279281786dd4bb16703c92ade55c7051b217fc8;hb=d1899304a8ef4a3f7c92079e96ae9bed106fa9ba;hp=f14fbd95b7881a91f652672bd9cb724be673011b;hpb=d07eed3bf4d0e290118588ca80997a8035eaeb21;p=platform%2Fupstream%2Fisl.git diff --git a/isl_schedule.c b/isl_schedule.c index f14fbd9..b279281 100644 --- a/isl_schedule.c +++ b/isl_schedule.c @@ -1388,6 +1388,7 @@ static __isl_give isl_map *node_extract_schedule(struct isl_sched_node *node) { int i, j; isl_space *dim; + isl_local_space *ls; isl_basic_map *bmap; isl_constraint *c; int nrow, ncol; @@ -1401,11 +1402,12 @@ static __isl_give isl_map *node_extract_schedule(struct isl_sched_node *node) dim = isl_space_from_domain(isl_space_copy(node->dim)); dim = isl_space_add_dims(dim, isl_dim_out, nrow); bmap = isl_basic_map_universe(isl_space_copy(dim)); + ls = isl_local_space_from_space(dim); isl_int_init(v); for (i = 0; i < nrow; ++i) { - c = isl_equality_alloc(isl_space_copy(dim)); + c = isl_equality_alloc(isl_local_space_copy(ls)); isl_constraint_set_coefficient_si(c, isl_dim_out, i, -1); isl_mat_get_element(node->sched, i, 0, &v); isl_constraint_set_constant(c, v); @@ -1423,7 +1425,7 @@ static __isl_give isl_map *node_extract_schedule(struct isl_sched_node *node) isl_int_clear(v); - isl_space_free(dim); + isl_local_space_free(ls); node->sched_map = isl_map_from_basic_map(bmap); return isl_map_copy(node->sched_map);