From 62be53ef4aa031b860ad94b710e82d48b020b69e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 11 Feb 2015 16:38:30 +0100 Subject: [PATCH] gpu.c: compute_schedule: use isl_schedule_constraints_set_context Do so instead of intersecting the domain passed of the isl_schedule_constraints with the context as otherwise this context will also be included in the domain of the schedule returned by isl_schedule_constraints_compute_schedule. Signed-off-by: Sven Verdoolaege --- gpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu.c b/gpu.c index 3fb8a10..c44f1af 100644 --- a/gpu.c +++ b/gpu.c @@ -5535,9 +5535,9 @@ static void compute_schedule(struct gpu_gen *gen) isl_schedule *schedule; domain = isl_union_set_copy(gen->prog->scop->domain); - domain = isl_union_set_intersect_params(domain, - isl_set_copy(gen->prog->scop->context)); sc = isl_schedule_constraints_on_domain(isl_union_set_copy(domain)); + sc = isl_schedule_constraints_set_context(sc, + isl_set_copy(gen->prog->scop->context)); if (gen->options->live_range_reordering) { sc = isl_schedule_constraints_set_conditional_validity(sc, isl_union_map_copy(gen->prog->scop->tagged_dep_flow), -- 2.11.4.GIT