Skip to content

Commit 0ffa5b1

Browse files
committed
Don't allow compiler to rearrange order of reducing unrolled reductions.
1 parent 52e6371 commit 0ffa5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LoopVectorization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ end
295295
pushfirst!(q.args, :($gsym = $mod.vbroadcast($V,one($T))))
296296
end
297297
end
298-
func = ((op == :*) | (op == :/)) ? :($mod.vmul) : :($mod.vadd)
298+
func = ((op == :*) | (op == :/)) ? :($mod.evmul) : :($mod.evadd)
299299
uf_new = unroll_factor
300300
while uf_new > 1
301301
uf_new, uf_prev = uf_new >> 1, uf_new

0 commit comments

Comments
 (0)