Skip to content
Snippets Groups Projects
Commit 5d9f76d6 authored by Nils Kohl's avatar Nils Kohl :full_moon_with_face:
Browse files

Vectorizer did not seem to properly handle some loops that are smaller than the vector width.

parent 5f3be7b3
No related merge requests found
Pipeline #66501 failed with stages
in 2 minutes and 50 seconds
...@@ -172,6 +172,8 @@ def vectorize_inner_loops_and_adapt_load_stores(ast_node, assume_aligned, nontem ...@@ -172,6 +172,8 @@ def vectorize_inner_loops_and_adapt_load_stores(ast_node, assume_aligned, nontem
assert len(loop_nodes) in (0, 1, 2) # 2 for main and tail loop, 1 if loop range divisible by vector width assert len(loop_nodes) in (0, 1, 2) # 2 for main and tail loop, 1 if loop range divisible by vector width
if len(loop_nodes) == 0: if len(loop_nodes) == 0:
continue continue
if len(loop_nodes) == 1 and loop_nodes[0].stop - loop_nodes[0].start < vector_width:
continue
for loop in loop_nodes: for loop in loop_nodes:
loop.parent = loop_node.parent loop.parent = loop_node.parent
loop_node = loop_nodes[0] loop_node = loop_nodes[0]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment