Skip to content

Commit

Permalink
Remove hack that avoided materialize in fallback broadcast
Browse files Browse the repository at this point in the history
For reasons beyond my comprehensions, this previously failed to inline despite the at-inline. For reasons that are also beyond my comprehension, this hack is no longer necessary.
  • Loading branch information
mbauman committed Apr 24, 2018
1 parent 4cd10d3 commit 8a2d88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ julia> string.(("one","two","three","four"), ": ", 1:4)
```
"""
broadcast(f::Tf, As...) where {Tf} = copy(instantiate(broadcasted(f, As...)))
broadcast(f::Tf, As...) where {Tf} = materialize(broadcasted(f, As...))

# special cases defined for performance
@inline broadcast(f, x::Number...) = f(x...)
Expand Down

0 comments on commit 8a2d88a

Please sign in to comment.