Skip to content

Commit 14bbb4a

Browse files
committed
[Compiler] use a slightly better (hopefully faster) bootstrap call
1 parent 608a06c commit 14bbb4a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Compiler/src/bootstrap.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,10 @@ function bootstrap!()
6767
end
6868
mi = specialize_method(m.method, Tuple{params...}, m.sparams)
6969
#isa_compileable_sig(mi) || println(stderr, "WARNING: inferring `", mi, "` which isn't expected to be called.")
70-
push!(methods, mi)
70+
typeinf_ext_toplevel(mi, world, isa_compileable_sig(mi) ? SOURCE_MODE_ABI : SOURCE_MODE_NOT_REQUIRED)
7171
end
7272
end
7373
end
74-
codeinfos = typeinf_ext_toplevel(methods, [world], TRIM_NO)
75-
for i = 1:2:length(codeinfos)
76-
ci = codeinfos[i]::CodeInstance
77-
src = codeinfos[i + 1]::CodeInfo
78-
isa_compileable_sig(ci.def) || continue # println(stderr, "WARNING: compiling `", ci.def, "` which isn't expected to be called.")
79-
ccall(:jl_add_codeinst_to_jit, Cvoid, (Any, Any), ci, src)
80-
end
8174
endtime = time()
8275
println("Base.Compiler ──── ", sub_float(endtime,starttime), " seconds")
8376
end

0 commit comments

Comments
 (0)