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
julia>using JET
julia>callf(f, args...) =f(args...)
callf (generic function with 1 method)
julia>@inlinefunctionuntyped_call(val)
returnundefinedf(val)
end
untyped_call (generic function with 1 method)
julia>@report_optcallf(untyped_call, 42)
═════ 2 possible errors found ═════ (either one is better to be excluded)
┌ @ none:1f(args...)
│┌ @ none:2%1(val)
││ runtime dispatch detected:%1::Any(val::Int64)
│└──────────
┌ @ none:2%2(%1)
│ runtime dispatch detected:%2::Any(%1::Int64)
└──────────
julia>@code_typedcallf(untyped_call, 42)
CodeInfo(
1 ─ %1= Core.getfield(args, 1)::Int64
│ %2= Main.undefinedf::Any
│ %3= (%2)(%1)::Any
└── return%3
) => Any
julia>@noinlinefunctionuntyped_call(val)
undefinedf(val)
end
untyped_call (generic function with 1 method)
julia>@report_optcallf(untyped_call, 42)
═════ 1 possible error found ═════
┌ @ none:1f(args...)
│┌ @ none:2%1(val)
││ runtime dispatch detected:%1::Any(val::Int64)
│└──────────
julia>@code_typedcallf(untyped_call, 42)
CodeInfo(
1 ─ %1= Core.getfield(args, 1)::Int64
│ %2= invoke f(%1::Int64)::Any
└── return%2
) => Any
The text was updated successfully, but these errors were encountered:
aviatesk
changed the title
optimization analysis should not report duplicated error from inlined calleesOptAnalyzer should not report duplicated error from inlined callees
Jul 4, 2022
The text was updated successfully, but these errors were encountered: