Skip to content

Commit 0f9ab73

Browse files
committed
nest additions
1 parent 40fef9c commit 0f9ab73

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
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.45"
4+
version = "0.12.46"
55

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

src/vectorizationbase_compat/contract_pass.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ function mulexpr(mulexargs)
4343
a, b
4444
end
4545
function append_args_skip!(call, args, i, mod)
46-
for j eachindex(args)
47-
j == i && continue
48-
push!(call.args, args[j])
46+
for j eachindex(args)
47+
j == i && continue
48+
if length(call.args) < 3
49+
push!(call.args, args[j])
50+
else
51+
call = Expr(:call, :add_fast, call, args[j])
4952
end
50-
call
53+
end
54+
call
5155
end
5256

5357
function fastfunc(f)

0 commit comments

Comments
 (0)