Skip to content

Commit fe948c6

Browse files
committed
Add a comment
1 parent c291735 commit fe948c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/copyable_task.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ function build_callable(sig::Type{<:Tuple})
9090
bb, refs, types = derive_copyable_task_ir(BBCode(ir))
9191
unoptimised_ir = IRCode(bb)
9292
@static if VERSION > v"1.12-"
93+
# This is a performance optimisation, copied over from Mooncake, where setting
94+
# the valid world age to be very strictly just the current age allows the
95+
# compiler to do more inlining and other optimisation.
9396
unoptimised_ir = set_valid_world!(unoptimised_ir, world_age)
9497
end
9598
optimised_ir = optimise_ir!(unoptimised_ir)

0 commit comments

Comments
 (0)