Skip to content

Commit

Permalink
vifelse for masked calls
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Jan 4, 2023
1 parent ac31711 commit c3dbca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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.12.144"
version = "0.12.145"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
3 changes: 2 additions & 1 deletion src/codegen/lower_compute.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ function ifelselastexpr(hasf::Bool, M::Int, vargtypes, K::Int, S::Int, maskearly
end
for m start:M
call = if hasf
(maskearly | (m == M)) ? Expr(:call, :ifelse, :f, :m) : Expr(:call, :f)
(maskearly | (m == M)) ? Expr(:call, VectorizationBase.vifelse, :f, :m) :
Expr(:call, :f)
else# m == M because !hasf
Expr(:call, :ifelse, :m)
end
Expand Down

2 comments on commit c3dbca5

@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
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/75139

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 the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.145 -m "<description of version>" c3dbca5cd0bfcac0910e78f8c486f6890652727c
git push origin v0.12.145

Please sign in to comment.