Skip to content

Commit

Permalink
inference: avoid adding duplicate edges as invoke targets (JuliaLang#…
Browse files Browse the repository at this point in the history
…53121)

This was inefficient, though not wrong.

Fixes JuliaLang#53020
  • Loading branch information
vtjnash authored and Drvi committed Jun 7, 2024
1 parent 3b7eb4a commit f4e2a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/ssair/inlining.jl
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ function compileable_specialization(mi::MethodInstance, effects::Effects,
end
end
add_inlining_backedge!(et, mi) # to the dispatch lookup
push!(et.edges, method.sig, mi_invoke) # add_inlining_backedge to the invoke call
mi_invoke !== mi && push!(et.edges, method.sig, mi_invoke) # add_inlining_backedge to the invoke call, if that is different
return InvokeCase(mi_invoke, effects, info)
end

Expand Down

0 comments on commit f4e2a7f

Please sign in to comment.