Skip to content

Commit 52ab1f5

Browse files
author
Ian Atol
committed
rebase fixes
1 parent 44ef0de commit 52ab1f5

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

base/compiler/abstractinterpretation.jl

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,33 +2194,6 @@ function abstract_eval_phi(interp::AbstractInterpreter, phi::PhiNode, vtypes::Un
21942194
return rt
21952195
end
21962196

2197-
function abstract_eval_foreigncall(interp::AbstractInterpreter, fcall::Expr, vtypes::Union{VarTable, Nothing}, sv::Union{InferenceState, IRCode}, mi::Union{MethodInstance, Nothing}=nothing)
2198-
args = fcall.args
2199-
abstract_eval_value(interp, args[1], vtypes, sv)
2200-
mi′ = mi === nothing ? sv.linfo : mi
2201-
t = sp_type_rewrap(args[2], mi′, true)
2202-
for i = 3:length(args)
2203-
if abstract_eval_value(interp, args[i], vtypes, sv) === Bottom
2204-
t = Bottom
2205-
end
2206-
end
2207-
cconv = args[5]
2208-
if isa(cconv, QuoteNode) && isa(cconv.value, Tuple{Symbol, UInt8})
2209-
effects = cconv.value[2]::UInt8
2210-
effects = decode_effects_override(effects)
2211-
effects = Effects(
2212-
effects.consistent ? ALWAYS_TRUE : TRISTATE_UNKNOWN,
2213-
effects.effect_free ? ALWAYS_TRUE : TRISTATE_UNKNOWN,
2214-
effects.nothrow ? ALWAYS_TRUE : TRISTATE_UNKNOWN,
2215-
effects.terminates_globally ? ALWAYS_TRUE : TRISTATE_UNKNOWN,
2216-
#=nonoverlayed=#true
2217-
)
2218-
else
2219-
effects = EFFECTS_UNKNOWN
2220-
end
2221-
return RTEffects(t, effects)
2222-
end
2223-
22242197
function abstract_eval_statement(interp::AbstractInterpreter, @nospecialize(e), vtypes::VarTable, sv::InferenceState)
22252198
if !isa(e, Expr)
22262199
if isa(e, PhiNode)

base/compiler/ssair/inlining.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ function handle_semi_concrete_result!(result::SemiConcreteResult, cases::Vector{
13601360
return true
13611361
end
13621362

1363-
function concrete_result_item(result::ConstResult, state::InliningState)
1363+
function const_result_item(result::ConstResult, state::InliningState)
13641364
if !isdefined(result, :result) || !is_inlineable_constant(result.result)
13651365
case = compileable_specialization(state.et, result.mi, result.effects)
13661366
@assert case !== nothing "concrete evaluation should never happen for uncompileable callsite"

0 commit comments

Comments
 (0)