Skip to content

Commit a3e8081

Browse files
committed
update
1 parent 34437df commit a3e8081

File tree

7 files changed

+138
-255
lines changed

7 files changed

+138
-255
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <elrodc@gmail.com>"]
4-
version = "0.12.169"
4+
version = "0.12.170"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
@@ -56,5 +56,5 @@ Static = "0.8.4"
5656
StaticArrayInterface = "1"
5757
ThreadingUtilities = "0.5"
5858
UnPack = "1"
59-
VectorizationBase = "0.21.63"
59+
VectorizationBase = "0.21.67"
6060
julia = "1.6"

src/condense_loopset.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function _append_fields!(t::Expr, body::Expr, sym::Symbol, ::Type{T}) where {T}
99
TF = fieldtype(T, f)
1010
Base.issingletontype(TF) && continue
1111
gfcall = Expr(:call, getfield, sym, f)
12-
if fieldcount(TF) 0
12+
if fieldcount(TF) 0 || TF <: Array
1313
push!(t.args, gfcall)
1414
elseif TF <: DataType
1515
push!(t.args, Expr(:call, Expr(:curly, lv(:StaticType), gfcall)))
@@ -26,7 +26,7 @@ end
2626
t = Expr(:tuple)
2727
if Base.issingletontype(T)
2828
nothing
29-
elseif fieldcount(T) 0
29+
elseif fieldcount(T) 0 || T <: Array
3030
push!(t.args, :r)
3131
elseif T <: DataType
3232
push!(t.args, Expr(:call, Expr(:curly, lv(:StaticType), :r)))
@@ -42,7 +42,7 @@ function rebuild_fields(offset::Int, ::Type{T}) where {T}
4242
TF = fieldtype(T, f)
4343
if Base.issingletontype(TF)
4444
push!(call.args, TF.instance)
45-
elseif fieldcount(TF) 0
45+
elseif fieldcount(TF) 0 || TF <: Array
4646
push!(call.args, Expr(:call, getfield, :t, (offset += 1)))
4747
elseif TF <: DataType
4848
push!(
@@ -59,7 +59,7 @@ end
5959
@generated function reassemble_tuple(::Type{T}, t::Tuple) where {T}
6060
if Base.issingletontype(T)
6161
return T.instance
62-
elseif fieldcount(T) 0
62+
elseif fieldcount(T) 0 || T <: Array
6363
call = Expr(:call, getfield, :t, 1)
6464
elseif T <: DataType
6565
call = Expr(:call, lv(:gettype), Expr(:call, getfield, :t, 1))

test/Project.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[compat]
2+
Aqua = "0.8.7"
3+
14
[deps]
25
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
36
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

test/grouptests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const START_TIME = time()
1515
@time if LOOPVECTORIZATION_TEST == "all" || LOOPVECTORIZATION_TEST == "part2"
1616
if VERSION >= v"1.9"
1717
using Aqua
18-
@time Aqua.test_all(LoopVectorization, ambiguities = false, piracy = false)
18+
@time Aqua.test_all(LoopVectorization, ambiguities = false, piracies = false)
1919
end
2020
@test isempty(detect_unbound_args(LoopVectorization))
2121

0 commit comments

Comments
 (0)