Skip to content

Commit

Permalink
allow compression
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Feb 14, 2024
1 parent 6936e58 commit 5eafaef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/abstractinterpret/abstractanalyzer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,10 @@ CC.InferenceParams(analyzer::AbstractAnalyzer) = get_inf_params(analyzer)
CC.OptimizationParams(analyzer::AbstractAnalyzer) = get_opt_params(analyzer)
#=CC.=#get_inference_world(analyzer::AbstractAnalyzer) = get_world(analyzer)

CC.may_compress(::AbstractAnalyzer) = !iszero(@ccall jl_generating_output()::Cint)

# this overload is necessary to avoid caching with the const ABI
CC.may_discard_trees(analyzer::AbstractAnalyzer) = false
CC.may_discard_trees(::AbstractAnalyzer) = false

let # overload `inlining_policy`
@static if isdefined(CC, :InliningInfo)
Expand Down

0 comments on commit 5eafaef

Please sign in to comment.