Skip to content

Commit

Permalink
Remove invariant loads on primal computation
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored and vchuravy committed Mar 19, 2024
1 parent 1203a0e commit 672c338
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4366,6 +4366,9 @@ function GPUCompiler.codegen(output::Symbol, job::CompilerJob{<:EnzymeTarget};

mod, meta = GPUCompiler.codegen(:llvm, primal_job; optimize=false, toplevel=toplevel, cleanup=false, validate=false, parent_job=parent_job)
prepare_llvm(mod, primal_job, meta)
for f in functions(mod)
permit_inlining!(f)
end

LLVM.ModulePassManager() do pm
API.AddPreserveNVVMPass!(pm, #=Begin=#true)
Expand Down

0 comments on commit 672c338

Please sign in to comment.