Open wsmoses opened 2 months ago
wmoses@beast:~/git/GPUCompiler.jl ((HEAD detached at origin/master)) $ git log
commit 8b513be9e2230fe0dd1905b805e25fa049b24d1d (HEAD, tag: v0.26.5, origin/master, origin/HEAD)
Author: Tim Besard <tim.besard@gmail.com>
Date: Fri May 24 10:25:09 2024 +0200
Bump version.
julia-repl> @show code_typed(runtime_mixed_call, Tuple{Val{(false, true)}, typeof(threading_run), Ref{typeof(m)}})
1-element Vector{Any}:
CodeInfo(
1 ─ %1 = (isa)(arg_1, Base.RefValue{var"#inner#29"{Vector{Float64}, Float64, UnitRange{Int64}}})::Bool
└── goto #3 if not %1
2 ─ %3 = π (arg_1, Base.RefValue{var"#inner#29"{Vector{Float64}, Float64, UnitRange{Int64}}})
│ %4 = Base.getfield(%3, :x)::var"#inner#29"{Vector{Float64}, Float64, UnitRange{Int64}}
└── goto #4
3 ─ %6 = Base.getindex(arg_1)::Any
└── goto #4
4 ┄ %8 = φ (#2 => %4, #3 => %6)::Any
│ (f)(%8)::Nothing
└── return nothing
) => Nothing
Ref{typeof(m)}
is not the same as typeof(Ref(m))
.
julia> typeof(Ref(m))
Base.RefValue{var"#inner#29"{Vector{Float64}, Float64, UnitRange{Int64}}}
On 1.10 output is
cc @vchuravy