Skip to content

Commit 7d548e3

Browse files
committed
static should add cleanup when unrolled not vectorized
1 parent f1d730d commit 7d548e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/lowering.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function lower_unrolled_dynamic(ls::LoopSet, us::UnrollSpecification, n::Int, in
292292
end
293293
end
294294
q = if unsigned(Ureduct) < unsigned(UF) # unsigned(-1) == typemax(UInt);
295-
add_cleanup = !loopisstatic# true
295+
add_cleanup = Core.ifelse(loopisstatic, !nisvectorized, true)# true
296296
if isone(Ureduct)
297297
UF_cleanup = 1
298298
if nisvectorized

0 commit comments

Comments
 (0)