Skip to content

Commit 38cf5a1

Browse files
authored
Delete convert(::Type{Any}, ::UpperBoundedInteger) (#316)
* Delete `convert(::Type{Any}, ::UpperBoundedInteger)` (fix ~600 invalidations) This method isn't necessary (it just replicates the fallback), and it triggers a lot of invalidations. * Version 0.12.64
1 parent 6f715a9 commit 38cf5a1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
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.63"
4+
version = "0.12.64"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/reconstruct_loopset.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Base.promote_rule(::Type{T}, ::Type{UpperBoundedInteger{N,S}}) where {N,T<:Base.
1313
Base.promote_rule(::Type{UpperBoundedInteger{N,S}}, ::Type{T}) where {N,T<:Base.BitInteger,S} = promote_rule(S,T)
1414
Base.convert(::Type{T}, i::UpperBoundedInteger) where {T<:Number} = convert(T, i.i)
1515
Base.convert(::Type{UpperBoundedInteger{N,T}}, i::UpperBoundedInteger{N,T}) where {N,T<:Base.BitInteger} = i
16-
Base.convert(::Type{Any}, i::UpperBoundedInteger) = i
1716
upper_bound(_) = typemax(Int)
1817
upper_bound(::Type{CloseOpen{T,UpperBoundedInteger{N,S}}}) where {T,N,S} = N - 1
1918

@@ -560,7 +559,7 @@ function add_array_symbols!(ls::LoopSet, arraysymbolinds::Vector{Symbol}, offset
560559
for as arraysymbolinds
561560
pushpreamble!(ls, Expr(:(=), as, extract_varg((offset+=1))))
562561
end
563-
return offset
562+
return offset
564563
end
565564
function extract_external_functions!(ls::LoopSet, offset::Int, vargs)
566565
for op operations(ls)

0 commit comments

Comments
 (0)