@@ -436,11 +436,11 @@ end
436
436
@generated function vmaterialize! (
437
437
dest:: AbstractArray{T,N} , bc:: Broadcasted{Base.Broadcast.DefaultArrayStyle{0},Nothing,typeof(identity),Tuple{T2}} , :: Val{Mod} , :: Val{UNROLL}
438
438
) where {T <: NativeTypes , N, T2 <: Number , Mod, UNROLL}
439
- inline, u₁, u₂, isbroadcast, W, rs, rc, cls, l1, l2, l3, threads = UNROLL
439
+ inline, u₁, u₂, v , isbroadcast, W, rs, rc, cls, l1, l2, l3, threads = UNROLL
440
440
quote
441
441
$ (Expr (:meta ,:inline ))
442
442
arg = T (first (bc. args))
443
- @turbo inline= $ inline unroll= ($ u₁,$ u₂) thread= $ threads for i ∈ eachindex (dest)
443
+ @turbo inline= $ inline unroll= ($ u₁,$ u₂) thread= $ threads vectorize = $ v for i ∈ eachindex (dest)
444
444
dest[i] = arg
445
445
end
446
446
dest
@@ -449,12 +449,12 @@ end
449
449
@generated function vmaterialize! (
450
450
dest′:: Union{Adjoint{T,A},Transpose{T,A}} , bc:: Broadcasted{Base.Broadcast.DefaultArrayStyle{0},Nothing,typeof(identity),Tuple{T2}} , :: Val{Mod} , :: Val{UNROLL}
451
451
) where {T <: NativeTypes , N, A <: AbstractArray{T,N} , T2 <: Number , Mod, UNROLL}
452
- inline, u₁, u₂, isbroadcast, W, rs, rc, cls, l1, l2, l3, threads = UNROLL
452
+ inline, u₁, u₂, v, isbroadcast, W, rs, rc, cls, l1, l2, l3, threads = UNROLL
453
453
quote
454
454
$ (Expr (:meta ,:inline ))
455
455
arg = T (first (bc. args))
456
456
dest = parent (dest′)
457
- @turbo inline= $ inline unroll= ($ u₁,$ u₂) thread= $ threads for i ∈ eachindex (dest)
457
+ @turbo inline= $ inline unroll= ($ u₁,$ u₂) thread= $ threads vectorize = $ v for i ∈ eachindex (dest)
458
458
dest[i] = arg
459
459
end
460
460
dest′
0 commit comments