Skip to content

Commit 2ab11e0

Browse files
committed
Tests pass.
1 parent 9cc278d commit 2ab11e0

File tree

6 files changed

+176
-116
lines changed

6 files changed

+176
-116
lines changed

src/LoopVectorization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ include("determinestrategy.jl")
907907
include("lowering.jl")
908908
include("constructors.jl")
909909
include("map.jl")
910-
include("precompile.jl")
911-
_precompile_()
910+
# include("precompile.jl")
911+
# _precompile_()
912912

913913
end # module

src/broadcast.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ function add_broadcast!(
173173
end
174174

175175
# size of dest determines loops
176+
# function vmaterialize!(
176177
@generated function vmaterialize!(
177178
dest::AbstractArray{T,N}, bc::BC
178179
) where {T <: Union{Float32,Float64}, N, BC <: Broadcasted}

src/determinestrategy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function choose_order(ls::LoopSet)
417417
tc = Inf
418418
end
419419
uorder, uvec, uc = choose_unroll_order(ls, tc)
420-
if num_loops(ls) > 1 && tc < uc
420+
if num_loops(ls) > 1 && tc uc
421421
return torder, tvec, tU, tT
422422
else
423423
return uorder, uvec, determine_unroll_factor(ls, uorder, first(uorder), uvec), -1

src/graphs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ function vec_looprange(ls::LoopSet, s::Symbol, isunrolled::Bool, W::Symbol, U::I
178178
Expr(:call, lv(:valsub), W, 1)
179179
end
180180
if loop.hintexact
181-
Expr(:call, :<, mangledname, Expr(:call, :-, loop.rangehint, incr))
181+
Expr(:call, :<, s, Expr(:call, :-, loop.rangehint, incr))
182182
else
183-
Expr(:call, :<, mangledname, Expr(:call, :-, loop.rangesym, incr))
183+
Expr(:call, :<, s, Expr(:call, :-, loop.rangesym, incr))
184184
end
185185
end
186186
function looprange(ls::LoopSet, s::Symbol, incr::Int = 1, mangledname::Symbol = s, loop = ls.loops[s])

0 commit comments

Comments
 (0)