diff --git a/src/reflection.jl b/src/reflection.jl index 4cae6f01..a180f2fb 100644 --- a/src/reflection.jl +++ b/src/reflection.jl @@ -170,7 +170,7 @@ struct jl_llvmf_dump end """ - code_llvm([io], job; optimize=true, raw=false, dump_module=false) + code_llvm([io], job; optimize=job.config.optimize, raw=false, dump_module=false) Prints the device LLVM IR generated for the given compiler job to `io` (default `stdout`). @@ -183,7 +183,7 @@ The following keyword arguments are supported: See also: [`@device_code_llvm`](@ref), `InteractiveUtils.code_llvm` """ -function code_llvm(io::IO, @nospecialize(job::CompilerJob); optimize::Bool=true, raw::Bool=false, +function code_llvm(io::IO, @nospecialize(job::CompilerJob); optimize::Bool=job.config.optimize, raw::Bool=false, debuginfo::Symbol=:default, dump_module::Bool=false, kwargs...) # NOTE: jl_dump_function_ir supports stripping metadata, so don't do it in the driver config = CompilerConfig(job.config; validate=false, strip=false, optimize) @@ -383,7 +383,7 @@ macro device_code(ex...) end open(joinpath(dir, "$fn.opt.ll"), "w") do io - code_llvm(io, job; dump_module=true, raw=true) + code_llvm(io, job; dump_module=true, raw=true, optimize=true) end open(joinpath(dir, "$fn.asm"), "w") do io diff --git a/test/native/precompile.jl b/test/native/precompile.jl index 1d186820..b96fb0a3 100644 --- a/test/native/precompile.jl +++ b/test/native/precompile.jl @@ -76,7 +76,7 @@ precompile_test_harness("Inference caching") do load_path @test check_presence(square_mi, token) # check that identity survived - @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || VERSION>=v"1.13.0-") + @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || v"1.13.0-" <= VERSION < v"1.13.0-beta3") GPUCompiler.clear_disk_cache!() @test GPUCompiler.disk_cache_enabled() == false diff --git a/test/ptx/precompile.jl b/test/ptx/precompile.jl index 4e669260..1b4e2d73 100644 --- a/test/ptx/precompile.jl +++ b/test/ptx/precompile.jl @@ -49,6 +49,6 @@ precompile_test_harness("Inference caching") do load_path @test check_presence(kernel_mi, token) # check that identity survived - @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || VERSION>=v"1.13.0-") + @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || v"1.13.0-" <= VERSION < v"1.13.0-beta3") end end