Skip to content

Commit ff8cacd

Browse files
committed
Require VectorizationBase 0.19.36 and fix ptr def for translation loads
1 parent 5f8d5c1 commit ff8cacd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Static = "0.2"
3030
StrideArraysCore = "0.1.5"
3131
ThreadingUtilities = "0.4.1"
3232
UnPack = "1"
33-
VectorizationBase = "0.19.35"
33+
VectorizationBase = "0.19.36"
3434
julia = "1.5"
3535

3636
[extras]

src/codegen/lower_load.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ function lower_load_for_optranslation!(
229229
end
230230
end
231231
ip = GlobalRef(VectorizationBase, :increment_ptr)
232-
push!(q.args, Expr(:(=), vptr_offset(gptr), Expr(:call, ip, ptr, vptr_offset(ptr), gespinds)))
232+
vpo = vptr_offset(gptr)
233+
push!(q.args, Expr(:(=), vpo, Expr(:call, ip, ptr, vptr_offset(ptr), gespinds)))
234+
push!(q.args, Expr(:(=), gptr, ptr))#Expr(:call, GlobalRef(VectorizationBase, :reconstruct_ptr),
233235
fill!(inds_by_ptroff, true)
234236
@unpack ref, loopedindex = mref
235237
indices = copy(getindices(ref))

src/reconstruct_loopset.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ function Loop(ls::LoopSet, ex::Expr, sym::Symbol, ::Type{R}) where {R<:AbstractR
3636
f = ArrayInterface.known_first(R)
3737
s = ArrayInterface.known_step(R)
3838
l = ArrayInterface.known_last(R)
39-
@show R f,s,l
4039
Loop(ls, ex, sym, f, s, l)
4140
end
4241

0 commit comments

Comments
 (0)