Skip to content

Commit a5b9421

Browse files
committed
fix bug introduced in prev commit
1 parent 5c7ec87 commit a5b9421

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/codegen/lowering.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ function lower_unrolled_dynamic(
394394
if length(loop) < UF * W
395395
Expr(:block)
396396
else
397-
UFt -= Ureduct
397+
if add_cleanup
398+
UFt -= Ureduct
399+
end
398400
Expr(
399401
:block,
400402
add_upper_outer_reductions(ls, q, Ureduct, UF, loop, nisvectorized)

0 commit comments

Comments
 (0)