Skip to content

Commit

Permalink
only vectorize for vector widths > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Jun 23, 2022
1 parent 73f0e27 commit 03de201
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.12.118"
version = "0.12.119"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
4 changes: 2 additions & 2 deletions src/modeling/determinestrategy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ function choose_order_cost(ls::LoopSet, v::Int = 0)
return torder,
tunroll,
ttile,
tvec,
isone(ls.vector_width) ? Symbol("##not#vectorized##") : tvec,
tU,
tT,
Core.ifelse(mismatched, Inf, tc),
Expand All @@ -1751,7 +1751,7 @@ function choose_order_cost(ls::LoopSet, v::Int = 0)
return uorder,
uunroll,
Symbol("##undefined##"),
uvec,
isone(ls.vector_width) ? Symbol("##not#vectorized##") : uvec,
UF,
-1,
Core.ifelse(mismatched, Inf, uc),
Expand Down

1 comment on commit 03de201

@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.

This commit doesn't seem to work, in that I can still get promotion errors between Vec{1,Float64} and Float64 after this commit.

Please sign in to comment.