You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is that if `alpha` is known to be non-zero and a `Bool`, it
must be `true`. We may therefore hardcode the value to reduce the
branches in `@stable_muladdmul`.
TTFX:
```julia
julia> using LinearAlgebra
julia> D = Diagonal(1:4); A = zeros(4,4);
julia> @time A * D;
0.079938 seconds (139.62 k allocations: 6.952 MiB, 99.92% compilation time) # master
0.058087 seconds (126.77 k allocations: 6.290 MiB, 99.88% compilation time) # this PR
```
The TTFX in `D * A` does not change by much, but the allocations go
down.
```julia
julia> @time D * A;
0.062484 seconds (176.66 k allocations: 8.696 MiB, 99.91% compilation time) # master
0.059009 seconds (133.34 k allocations: 6.572 MiB, 99.91% compilation time) # this PR
```
0 commit comments