Skip to content

Commit

Permalink
use direct Union application instead of tmerge
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Nov 21, 2024
1 parent 4cd850d commit 3b35cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/src/tfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1773,10 +1773,10 @@ function apply_type_tfunc(𝕃::AbstractLattice, argtypes::Vector{Any};
return allconst ? Const(ty) : Type{ty}
end
if 1 < unionsplitcost(𝕃, argtypes) ≀ max_union_splitting
βŠ” = join(𝕃)
rt = Bottom
for split_argtypes = switchtupleunion(𝕃, argtypes)
rt = rt βŠ” _apply_type_tfunc(𝕃, headtype, split_argtypes)
this_rt = widenconst(_apply_type_tfunc(𝕃, headtype, split_argtypes))
rt = Union{rt, this_rt}
end
return rt
end
Expand Down

0 comments on commit 3b35cae

Please sign in to comment.