Skip to content

Commit 213a066

Browse files
committed
WIP: Cache
1 parent 1c22f00 commit 213a066

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/execution.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,13 @@ end
253253
if !ondisk_hit && path !== nothing && disk_cache_enabled()
254254
@debug "Writing out on-disk cache" job path
255255
mkpath(dirname(path))
256+
if haskey(asm.meta, :gv_to_value)
257+
# TODO: Serializer cannot handle Core.IntrinsicFunction
258+
# We kinda want Julia to serialize the values in `gv_to_value` in the pkgimg and us just having to store an index
259+
# for now we just empty them out
260+
# We would need to remove the initializers from LLVM IR as well to be correct, and then link these in at runtime
261+
empty!(asm.meta.gv_to_value)
262+
end
256263
entry = DiskCacheEntry(src.specTypes, cfg, asm)
257264

258265
# atomic write to disk

0 commit comments

Comments
 (0)