mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 01:10:25 +01:00
radeonsi: initialize and finalize the LLVM function pass manager
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
d61d259518
commit
07ccec002b
1 changed files with 2 additions and 0 deletions
|
|
@ -2047,7 +2047,9 @@ void radeon_llvm_finalize_module(struct radeon_llvm_context *ctx)
|
|||
LLVMAddInstructionCombiningPass(gallivm->passmgr);
|
||||
|
||||
/* Run the pass */
|
||||
LLVMInitializeFunctionPassManager(gallivm->passmgr);
|
||||
LLVMRunFunctionPassManager(gallivm->passmgr, ctx->main_fn);
|
||||
LLVMFinalizeFunctionPassManager(gallivm->passmgr);
|
||||
|
||||
LLVMDisposeBuilder(gallivm->builder);
|
||||
LLVMDisposePassManager(gallivm->passmgr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue