Skip to content

Commit fa66298

Browse files
author
Ian Atol
committed
Fixes to 5e92b7d
1 parent 654f68c commit fa66298

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

base/compiler/ssair/inlining.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ function analyze_single_call!(
12751275
end
12761276
end
12771277
for (j, match) in enumerate(meth)
1278-
if !isdispatchtuple(match.spec_types)
1278+
if !validate_sparams(match.sparams)
12791279
if !match.fully_covers
12801280
handled_all_cases = false
12811281
continue
@@ -1366,15 +1366,14 @@ function handle_const_call!(
13661366
j += 1
13671367
result = results[j]
13681368
any_fully_covered |= match.fully_covers
1369-
check_sparams = isa(only_method, Bool) # validate sparams if we know this meth has >1 match
13701369
if isa(result, ConcreteResult)
13711370
case = concrete_result_item(result, state)
13721371
push!(cases, InliningCase(result.mi.specTypes, case))
13731372
elseif isa(result, ConstPropResult)
1374-
handled_all_cases &= handle_const_prop_result!(result, argtypes, flag, state, cases, true, check_sparams)
1373+
handled_all_cases &= handle_const_prop_result!(result, argtypes, flag, state, cases, true, true)
13751374
else
13761375
@assert result === nothing
1377-
handled_all_cases &= handle_match!(match, argtypes, flag, state, cases, true, check_sparams)
1376+
handled_all_cases &= handle_match!(match, argtypes, flag, state, cases, true, true)
13781377
end
13791378
end
13801379
end

0 commit comments

Comments
 (0)