Skip to content

Commit ea843c7

Browse files
committed
Remove @info to not pessimize check_args returning false
1 parent c8e44d3 commit ea843c7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
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 <[email protected]>"]
4-
version = "0.12.10"
4+
version = "0.12.11"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
@@ -24,11 +24,11 @@ DocStringExtensions = "0.8"
2424
IfElse = "0.1"
2525
OffsetArrays = "1.4.1, 1.5"
2626
Requires = "1"
27-
SLEEFPirates = "0.6.12"
27+
SLEEFPirates = "0.6.14"
2828
Static = "0.2"
2929
ThreadingUtilities = "0.4.1"
3030
UnPack = "1"
31-
VectorizationBase = "0.19.19"
31+
VectorizationBase = "0.19.22"
3232
julia = "1.5"
3333

3434
[extras]

src/condense_loopset.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ end
382382
@inline check_args(A::BitArray) = iszero(size(A,1) & 7)
383383
@inline check_args(::VectorizationBase.AbstractStridedPointer) = true
384384
@inline function check_args(x)
385-
@info "`LoopVectorization.check_args(::$(typeof(x))) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog=1
385+
# @info "`LoopVectorization.check_args(::$(typeof(x))) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog=1
386386
false
387387
end
388388
@inline check_args(A, B, C::Vararg{Any,K}) where {K} = check_args(A) && check_args(B, C...)
@@ -394,18 +394,18 @@ end
394394
Returns true if the element type is supported.
395395
"""
396396
@inline check_type(::Type{T}) where {T <: NativeTypes} = true
397-
function check_type(::Type{T}) where {T}
398-
@info """`LoopVectorization.check_type` returned `false`, because `LoopVectorization.check_type(::$(T)) == false`.
399-
`LoopVectorization` currently only supports `T <: $(NativeTypes)`.
400-
Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
397+
@inline function check_type(::Type{T}) where {T}
398+
# @info """`LoopVectorization.check_type` returned `false`, because `LoopVectorization.check_type(::$(T)) == false`.
399+
# `LoopVectorization` currently only supports `T <: $(NativeTypes)`.
400+
# Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
401401
false
402402
end
403403
@inline check_device(::ArrayInterface.CPUPointer) = true
404404
@inline check_device(::ArrayInterface.CPUTuple) = true
405-
function check_device(x)
406-
@info """`LoopVectorization.check_args` returned `false`, because `ArrayInterface.device(::$(typeof(x))) == $x`
407-
`LoopVectorization` normally requires `ArrayInterface.CPUPointer` (exceptions include ranges, `BitVector`s, and
408-
`BitArray`s whose number of rows is a multiple of 8). Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
405+
@inline function check_device(x)
406+
# @info """`LoopVectorization.check_args` returned `false`, because `ArrayInterface.device(::$(typeof(x))) == $x`
407+
# `LoopVectorization` normally requires `ArrayInterface.CPUPointer` (exceptions include ranges, `BitVector`s, and
408+
# `BitArray`s whose number of rows is a multiple of 8). Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
409409
false
410410
end
411411

0 commit comments

Comments
 (0)