Skip to content

Commit

Permalink
Don't opt into typeinf tracking before v1.11 (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored Apr 16, 2024
1 parent 9f90e9d commit c15433c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ function compile_method_instance(@nospecialize(job::CompilerJob))
return llvm_mod, compiled
end

# Narrow this if JuliaLang/julia#54069 get's backported to 1.11
@static if v"1.11.0-DEV.1603" <= VERSION < v"1.12.0-DEV.347"
function CC.typeinf(interp::GPUInterpreter, frame::CC.InferenceState)
if CC.__measure_typeinf__[]
CC.Timings.enter_new_timer(frame)
Expand All @@ -764,3 +766,4 @@ function CC.typeinf(interp::GPUInterpreter, frame::CC.InferenceState)
return CC._typeinf(interp, frame)
end
end
end

0 comments on commit c15433c

Please sign in to comment.