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

Attempt simple hull if outcome of get_footprint is not convex.

parent 6f7ba19a
No related branches found
No related tags found
No related merge requests found
......@@ -361,6 +361,12 @@ def precompute(kernel, subst_name, dtype, sweep_inames=[],
sweep_inames, invocation_descriptors)
new_domain = new_domain.coalesce()
if len(new_domain.get_basic_sets()) > 1:
hull_new_domain = new_domain.simple_hull()
if hull_new_domain <= new_domain:
new_domain = hull_new_domain
if isinstance(new_domain, isl.Set):
dom_bsets = new_domain.get_basic_sets()
if len(dom_bsets) > 1:
......
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