Skip to content

Commit 14370c9

Browse files
committed
Don't unnecessarilly discard type info on constant 1s. Fixes #287.
1 parent ed02095 commit 14370c9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-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.41"
4+
version = "0.12.42"
55

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

src/modeling/graphs.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,6 @@ function pushpreamble!(ls::LoopSet, op::Operation, v::Number)
487487
id = identifier(op)
488488
if iszero(v)
489489
push!(ls.preamble_zeros, (id, typ))
490-
elseif isone(v)
491-
push!(ls.preamble_funcofeltypes, (id, MULTIPLICATIVE_IN_REDUCTIONS))
492490
elseif v isa Integer
493491
push!(ls.preamble_symint, (id, integer_description(v)))
494492
else

0 commit comments

Comments
 (0)