938
938
@inline check_args (:: VectorizationBase.AbstractStridedPointer ) = true
939
939
@inline function check_args (x)
940
940
# @info "`LoopVectorization.check_args(::$(typeof(x))) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog=1
941
- @show @__LINE__ , typeof (x)
941
+ # DEBUG: @show @__LINE__, typeof(x)
942
942
false
943
943
end
944
944
@inline check_args (A, B, C:: Vararg{Any,K} ) where {K} =
@@ -956,15 +956,15 @@ Returns true if the element type is supported.
956
956
"""
957
957
@inline check_type (:: Type{T} ) where {T<: NativeTypes } = true
958
958
@inline function check_type (:: Type{T} ) where {T}
959
- @show @__LINE__ , T
960
- false
959
+ # DEBUG: @show @__LINE__, T
960
+ false
961
961
end
962
962
@inline check_type (:: Type{T} ) where {T<: AbstractSIMD } = true
963
963
@inline check_device (:: ArrayInterface.CPUPointer ) = true
964
964
@inline check_device (:: ArrayInterface.CPUTuple ) = true
965
965
@inline function check_device (x)
966
- @show @__LINE__ , typeof (x)
967
- false
966
+ # DEBUG: @show @__LINE__, typeof(x)
967
+ false
968
968
end
969
969
970
970
function check_args_call (ls:: LoopSet )
@@ -985,7 +985,7 @@ can be used inside a `@turbo` loop.
985
985
"""
986
986
function can_turbo (f:: F , :: Val{NARGS} ):: Bool where {F,NARGS}
987
987
promoted_op = Base. promote_op (f, ntuple (RetVec2Int (), Val (NARGS))... )
988
- promoted_op === Union{} && @show f, NARGS
988
+ # DEBUG: promoted_op === Union{} && @show f, NARGS
989
989
return promoted_op != = Union{}
990
990
end
991
991
can_turbo (:: typeof (vfmaddsub), :: Val{3} ) = true
0 commit comments