From cb93962c1b744d5217c8da15067e4aa3065b92c1 Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Mon, 15 Apr 2024 20:50:47 -0400 Subject: [PATCH] don't limit inference on vconvert recursion --- src/VectorizationBase.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/VectorizationBase.jl b/src/VectorizationBase.jl index 306e586..15f8dcc 100644 --- a/src/VectorizationBase.jl +++ b/src/VectorizationBase.jl @@ -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_()