Skip to content

Commit a2b1ac8

Browse files
committed
Add missing parenthesis.
1 parent 753aa3d commit a2b1ac8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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.8.15"
4+
version = "0.8.16"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

src/determinestrategy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function cost(ls::LoopSet, op::Operation, vectorized::Symbol, Wshift::Int, size_
7272
r = (1 << Wshift)
7373
srt *= r
7474
sl *= r
75-
elseif isload(op) & length(loopdependencies(op)) > 1# vmov(a/u)pd
75+
elseif isload(op) & (length(loopdependencies(op)) > 1)# vmov(a/u)pd
7676
# penalize vectorized loads with more than 1 loopdep
7777
# heuristic; more than 1 loopdep means that many loads will not be aligned
7878
# Roughly corresponds to double-counting loads crossing cacheline boundaries

test/miscellaneous.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ using Test
108108
# # @test LoopVectorization.choose_order(lscolsum) == (Symbol[:j,:i], :j, :i, :j, Unum, Tnum)
109109
# @test LoopVectorization.choose_order(lscolsum) == (Symbol[:j,:i], :j, :i, :j, 1, 1)
110110
# end
111-
@test LoopVectorization.choose_order(lscolsum) == (Symbol[:j,:i], :j, Symbol("##undefined##"), :j, 4, -1)
111+
@test LoopVectorization.choose_order(lscolsum) == (Symbol[:j,:i], :j, Symbol("##undefined##"), :j, 8, -1)
112112
# my colsum is wrong (by 0.25), but slightly more interesting
113113
function mycolsum!(x, A)
114114
@. x = 0
@@ -144,7 +144,7 @@ using Test
144144
lsvar = LoopVectorization.LoopSet(varq);
145145
# LoopVectorization.choose_order(lsvar)
146146
# @test LoopVectorization.choose_order(lsvar) == (Symbol[:j,:i], :j, :i, :j, Unum, Tnum)
147-
@test LoopVectorization.choose_order(lsvar) == (Symbol[:j,:i], :j, Symbol("##undefined##"), :j, 4, -1)
147+
@test LoopVectorization.choose_order(lsvar) == (Symbol[:j,:i], :j, Symbol("##undefined##"), :j, 8, -1)
148148
# if LoopVectorization.REGISTER_COUNT == 32
149149
# @test LoopVectorization.choose_order(lsvar) == (Symbol[:j,:i], :j, :i, :j, 2, 10)
150150
# elseif LoopVectorization.REGISTER_COUNT == 16

0 commit comments

Comments
 (0)