Skip to content

Commit

Permalink
don't limit inference on vconvert recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Apr 16, 2024
1 parent 9847086 commit cb93962
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/VectorizationBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,15 @@ end
@inline reduce_to_onevec(f::F, vu::VecUnroll) where {F} =
ArrayInterface.reduce_tup(f, data(vu))

if VERSION >= v"1.7.0" && hasfield(Method, :recursion_relation)
dont_limit = Returns(true)
for f in (vconvert, _vconvert)
for m in methods(f)
m.recursion_relation = dont_limit
end
end
end

include("precompile.jl")
_precompile_()

Expand Down

0 comments on commit cb93962

Please sign in to comment.