@@ -838,11 +838,11 @@ function assemble_inline_todo!(ir::IRCode, linetable::Vector{LineInfoNode}, sv::
838838 end
839839 isinvoke = (invoke_data != = nothing )
840840
841- atype_unlimited = argtypes_to_type (atypes)
841+ atype = argtypes_to_type (atypes)
842842
843843 # In :invoke, make sure that the arguments we're passing are a subtype of the
844844 # signature we're invoking.
845- (invoke_data === nothing || atype_unlimited <: invoke_data.types0 ) || continue
845+ (invoke_data === nothing || atype <: invoke_data.types0 ) || continue
846846
847847 # Bail out here if inlining is disabled
848848 sv. params. inlining || continue
@@ -852,20 +852,13 @@ function assemble_inline_todo!(ir::IRCode, linetable::Vector{LineInfoNode}, sv::
852852 continue
853853 end
854854
855- # Compute the limited type if necessary
856- if length (atype_unlimited. parameters) - 1 > sv. params. MAX_TUPLETYPE_LEN
857- atype = limit_tuple_type (atype_unlimited, sv. params)
858- else
859- atype = atype_unlimited
860- end
861-
862855 # Ok, now figure out what method to call
863856 if invoke_data != = nothing
864857 method = invoke_data. entry. func
865858 (metharg, methsp) = ccall (:jl_type_intersection_with_env , Any, (Any, Any),
866- atype_unlimited , method. sig):: SimpleVector
859+ atype , method. sig):: SimpleVector
867860 methsp = methsp:: SimpleVector
868- result = analyze_method! (idx, f, ft, metharg, methsp, method, stmt, atypes, sv, atype_unlimited , isinvoke, isapply, invoke_data,
861+ result = analyze_method! (idx, f, ft, metharg, methsp, method, stmt, atypes, sv, atype , isinvoke, isapply, invoke_data,
869862 calltype)
870863 handle_single_case! (ir, stmt, idx, result, isinvoke, todo, sv)
871864 continue
@@ -942,7 +935,7 @@ function assemble_inline_todo!(ir::IRCode, linetable::Vector{LineInfoNode}, sv::
942935 methsp = meth[1 ][2 ]:: SimpleVector
943936 method = meth[1 ][3 ]:: Method
944937 fully_covered = true
945- case = analyze_method! (idx, f, ft, metharg, methsp, method, stmt, atypes, sv, atype_unlimited , isinvoke, isapply, invoke_data, calltype)
938+ case = analyze_method! (idx, f, ft, metharg, methsp, method, stmt, atypes, sv, atype , isinvoke, isapply, invoke_data, calltype)
946939 case === nothing && continue
947940 push! (cases, Pair {Any,Any} (metharg, case))
948941 end
@@ -955,7 +948,7 @@ function assemble_inline_todo!(ir::IRCode, linetable::Vector{LineInfoNode}, sv::
955948 continue
956949 end
957950 length (cases) == 0 && continue
958- push! (todo, UnionSplit (idx, fully_covered, atype_unlimited , isinvoke, cases))
951+ push! (todo, UnionSplit (idx, fully_covered, atype , isinvoke, cases))
959952 end
960953 todo
961954end
0 commit comments