Skip to content

Commit

Permalink
Fixed outer reduction bug when tiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Jan 3, 2020
1 parent a76d8c7 commit e532a98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LoopVectorization"
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
authors = ["Chris Elrod <[email protected]>"]
version = "0.2.1"
version = "0.2.2"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
4 changes: 2 additions & 2 deletions src/lowering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ function lower_compute!(
for u 0:Uiter
instrcall = callfun(instr) # Expr(:call, instr)
varsym = if tiledouterreduction > 0 # then suffix !== nothing
modsuff = ((u+suffix*U) & 3)
modsuffix = ((u + suffix*U) & 3)
Symbol("##",var,:_, modsuffix)
elseif opunrolled
Symbol("##",var,:_,u)
Expand Down Expand Up @@ -896,7 +896,7 @@ function lower_tiled(ls::LoopSet, vectorized::Symbol, U::Int, T::Int)
firstiter = false
end
q = gc_preserve(ls, q)
reduce_expr!(q, ls, U)
reduce_expr!(q, ls, 4)
Expr(:block, ls.preamble, q)
end
function lower_unrolled(ls::LoopSet, vectorized::Symbol, U::Int)
Expand Down

2 comments on commit e532a98

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/7488

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.2 -m "<description of version>" e532a987d323527743beced67734b6af4f2f29d9
git push origin v0.2.2

Please sign in to comment.