Skip to content

Commit 03de201

Browse files
committed
only vectorize for vector widths > 1
1 parent 73f0e27 commit 03de201

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.12.118"
4+
version = "0.12.119"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/modeling/determinestrategy.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ function choose_order_cost(ls::LoopSet, v::Int = 0)
17391739
return torder,
17401740
tunroll,
17411741
ttile,
1742-
tvec,
1742+
isone(ls.vector_width) ? Symbol("##not#vectorized##") : tvec,
17431743
tU,
17441744
tT,
17451745
Core.ifelse(mismatched, Inf, tc),
@@ -1751,7 +1751,7 @@ function choose_order_cost(ls::LoopSet, v::Int = 0)
17511751
return uorder,
17521752
uunroll,
17531753
Symbol("##undefined##"),
1754-
uvec,
1754+
isone(ls.vector_width) ? Symbol("##not#vectorized##") : uvec,
17551755
UF,
17561756
-1,
17571757
Core.ifelse(mismatched, Inf, uc),

0 commit comments

Comments
 (0)