Skip to content
Snippets Groups Projects
Commit bc9a8014 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix boxify to return domain with only box_inames modified, not the entire...

Fix boxify to return domain with only box_inames modified, not the entire domain replaced by a box on those iname
parent 7c7b10d1
No related branches found
No related tags found
No related merge requests found
...@@ -324,10 +324,12 @@ def boxify(cache_manager, domain, box_inames, context): ...@@ -324,10 +324,12 @@ def boxify(cache_manager, domain, box_inames, context):
domain = domain.move_dims( domain = domain.move_dims(
dim_type.param, n_old_parameters, dim_type.set, 0, n_nonbox_inames) dim_type.param, n_old_parameters, dim_type.set, 0, n_nonbox_inames)
result = domain.universe(domain.space) result = domain
zero = isl.Aff.zero_on_domain(result.space) zero = isl.Aff.zero_on_domain(result.space)
for i in range(len(box_iname_indices)): for i in range(len(box_iname_indices)):
result = result.eliminate(dim_type.set, i, 1)
iname_aff = zero.add_coefficient_val(dim_type.in_, i, 1) iname_aff = zero.add_coefficient_val(dim_type.in_, i, 1)
def add_in_dims(aff): def add_in_dims(aff):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment