From 58c2be27c0f549e0cb71b682b02bb25eb14f5a00 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 28 Dec 2012 12:30:43 +0100 Subject: [PATCH] gpu.c: use new schedule interface Signed-off-by: Sven Verdoolaege --- gpu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gpu.c b/gpu.c index cba4475..e3b8925 100644 --- a/gpu.c +++ b/gpu.c @@ -5025,6 +5025,7 @@ static void compute_schedule(struct gpu_gen *gen) isl_union_set *domain; isl_union_map *dep_raw, *dep; isl_union_map *sched; + isl_schedule_constraints *sc; isl_schedule *schedule; dep_raw = isl_union_map_copy(gen->prog->scop->dep_flow); @@ -5036,8 +5037,11 @@ static void compute_schedule(struct gpu_gen *gen) domain = isl_union_set_copy(gen->prog->scop->domain); domain = isl_union_set_intersect_params(domain, isl_set_copy(gen->prog->scop->context)); - schedule = isl_union_set_compute_schedule(isl_union_set_copy(domain), - isl_union_map_copy(dep), dep); + sc = isl_schedule_constraints_on_domain(isl_union_set_copy(domain)); + sc = isl_schedule_constraints_set_validity(sc, isl_union_map_copy(dep)); + sc = isl_schedule_constraints_set_proximity(sc, dep); + + schedule = isl_schedule_constraints_compute_schedule(sc); if (gen->options->debug->dump_schedule) isl_schedule_dump(schedule); -- 2.11.4.GIT