From 1c1d6a67930f39e7200f10d221c169d4add3ceac Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 23 Jun 2016 15:18:33 +0200 Subject: [PATCH] pet_check_code: use pet_scop_get_schedule Do so instead of accessing the corresponding pet_scop field directly. Signed-off-by: Sven Verdoolaege --- pet_check_code.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pet_check_code.c b/pet_check_code.c index b3301b3..6efe0f1 100644 --- a/pet_check_code.c +++ b/pet_check_code.c @@ -169,16 +169,19 @@ static __isl_give isl_union_map *scop_collect_calls(struct pet_scop *scop) */ static __isl_give isl_union_map *extract_code_schedule(struct pet_scop *scop) { - isl_union_map *schedule; + isl_schedule *schedule; + isl_union_map *schedule_map; isl_union_map *calls; - schedule = isl_schedule_get_map(scop->schedule); + schedule = pet_scop_get_schedule(scop); + schedule_map = isl_schedule_get_map(schedule); + isl_schedule_free(schedule); calls = scop_collect_calls(scop); - schedule = isl_union_map_apply_domain(schedule, calls); + schedule_map = isl_union_map_apply_domain(schedule_map, calls); - return schedule; + return schedule_map; } /* Check that schedule and code_schedule have the same domain, -- 2.11.4.GIT