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

Fix _find_aff_dims in dim_{min,max} perf fix

parent cb15587b
No related branches found
No related tags found
No related merge requests found
......@@ -426,9 +426,10 @@ def _find_aff_dims(aff, dim_types_and_gen_dim_types):
result = set(result)
for i in range(aff.dim(dim_type.div)):
result.update(_find_aff_dims(
aff.get_div(i),
dim_types_and_gen_dim_types))
if not aff.get_coefficient_val(dim_type.div, i).is_zero():
result.update(_find_aff_dims(
aff.get_div(i),
dim_types_and_gen_dim_types))
return result
......
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