Skip to content

Commit 933ad71

Browse files
committed
Remove unneeded IR decompression.
1 parent 668046a commit 933ad71

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ end
229229
ci_cache_token(@nospecialize(job::CompilerJob)) =
230230
GPUCompilerCacheToken(typeof(job.config.target), job.config.always_inline, method_table(job))
231231

232-
# the codeinfo cache to use -- should only be used for the constructor
232+
# the codeinstance cache to use -- should only be used for the constructor
233233
if VERSION >= v"1.11.0-DEV.1552"
234234
# Soft deprecated user should use `CC.code_cache(get_interpreter(job))`
235235
ci_cache(@nospecialize(job::CompilerJob)) = CC.code_cache(get_interpreter(job))

src/jlgen.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,6 @@ function CC.getindex(wvc::WorldView{CodeCache}, mi::MethodInstance)
495495
end
496496

497497
function CC.setindex!(wvc::WorldView{CodeCache}, ci::CodeInstance, mi::MethodInstance)
498-
src = if ci.inferred isa Vector{UInt8}
499-
ccall(:jl_uncompress_ir, Any, (Any, Ptr{Cvoid}, Any),
500-
mi.def, C_NULL, ci.inferred)
501-
else
502-
ci.inferred
503-
end
504498
CC.setindex!(wvc.cache, ci, mi)
505499
end
506500

0 commit comments

Comments
 (0)