Skip to content

Commit 75eb76f

Browse files
authored
Adjust backedge insertion (#32)
Together with JuliaLang/julia#58390 fixes #31.
1 parent d4b0b86 commit 75eb76f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/transform/common.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ end
6565

6666
function cache_dae_ci!(old_ci, src, debuginfo, abi, owner)
6767
mi = old_ci.def
68-
edges = Core.svec(mi)
68+
edges = Core.svec(old_ci)
6969
daef_ci = CodeInstance(abi === nothing ? old_ci.def : Core.ABIOverride(abi, old_ci.def), owner, Tuple, Union{}, nothing, src, Int32(0),
70-
UInt(1)#=ci.min_world=#, old_ci.max_world, old_ci.ipo_purity_bits,
70+
old_ci.min_world, old_ci.max_world, old_ci.ipo_purity_bits,
7171
nothing, debuginfo, edges)
72-
ccall(:jl_method_instance_add_backedge, Cvoid, (Any, Any, Any), mi, nothing, daef_ci)
72+
Compiler.store_backedges(daef_ci, edges)
7373
ccall(:jl_mi_cache_insert, Cvoid, (Any, Any), mi, daef_ci)
7474
return daef_ci
7575
end

0 commit comments

Comments
 (0)