Skip to content
Snippets Groups Projects
Commit 79450475 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Add aliasing property to precomputation temporaries

parent aa1e0bdf
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,9 @@ def add_vector_view(knl, tmpname, pad_to=None, flatview=False):
# Add base storage to the original temporary!
if not temp.base_storage:
temp = temp.copy(base_storage=bsname)
temp = temp.copy(base_storage=bsname,
_base_storage_access_may_be_aliasing=True,
)
temporaries[tmpname] = temp
else:
bsname = temp.base_storage
......@@ -77,6 +79,7 @@ def add_vector_view(knl, tmpname, pad_to=None, flatview=False):
base_storage=bsname,
dtype=dtype_floatingpoint(),
scope=lp.temp_var_scope.PRIVATE,
_base_storage_access_may_be_aliasing=True,
)
# Avoid that any of these temporaries are eliminated
......
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