From c15433ca68ee0fd52ae5241ad8d4c91df531801b Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Tue, 16 Apr 2024 12:26:48 -0400 Subject: [PATCH] Don't opt into typeinf tracking before v1.11 (#569) --- src/jlgen.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jlgen.jl b/src/jlgen.jl index ca0af78c..06e9e0ed 100644 --- a/src/jlgen.jl +++ b/src/jlgen.jl @@ -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) @@ -764,3 +766,4 @@ function CC.typeinf(interp::GPUInterpreter, frame::CC.InferenceState) return CC._typeinf(interp, frame) end end +end