Skip to content

Commit 82dcffe

Browse files
authored
Merge pull request #721 from staticfloat/sf/no_rest_for_the_wicked
Avoid lowering to `Base.rest()`, as it infers poorly
2 parents 9dc2d7f + bc57832 commit 82dcffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rulesets/Base/fastmath_able.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ let
169169
@scalar_rule x / y (one(x) / y, -/ y))
170170

171171
## many-arg +
172-
function frule((_, Δx, Δy...), ::typeof(+), x::Number, ys::Number...)
173-
+(x, ys...), +(Δx, Δy...)
172+
function frule(Δs, ::typeof(+), x::Number, ys::Number...)
173+
+(x, ys...), +(Base.tail(Δs)...)
174174
end
175175

176176
function rrule(::typeof(+), x::Number, ys::Number...)

0 commit comments

Comments
 (0)