Skip to content

Commit c3033d7

Browse files
committed
Only mask updating reductions.
1 parent 7b26ccb commit c3033d7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Parameters = "0.12.0"
1717
SIMDPirates = "0.1.0"
1818
SLEEFPirates = "0.1.1"
1919
VectorizationBase = "0.1.3"
20-
julia = "1.0.0"
20+
julia = "1.3.0"
2121

2222
[extras]
2323
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/graphs.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# lv(x) = Expr(:(.), :LoopVectorization, QuoteNode(x))
2-
@static if VERSION < v"1.3.0"
3-
lv(x) = Expr(:(.), :LoopVectorization, QuoteNode(x))
4-
else
2+
# @static if VERSION < v"1.3.0"
3+
# lv(x) = Expr(:(.), :LoopVectorization, QuoteNode(x))
4+
# else
55
lv(x) = GlobalRef(LoopVectorization, x)
6-
end
6+
# end
77

88
isdense(::Type{<:DenseArray}) = true
99

src/lowering.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function lower_compute!(
281281
# @show instr parentsunrolled
282282
# parentsyms = [opp.variable for opp ∈ parents(op)]
283283
Uiter = opunrolled ? U - 1 : 0
284-
maskreduct = mask !== nothing && isreduction(op)#any(opp -> opp.variable === var, parents_op)
284+
maskreduct = mask !== nothing && isreduction(op) && any(opp -> opp.variable === var, parents_op)
285285
# if a parent is not unrolled, the compiler should handle broadcasting CSE.
286286
# because unrolled/tiled parents result in an unrolled/tiled dependendency,
287287
# we handle both the tiled and untiled case here.

0 commit comments

Comments
 (0)