diff options
author | Marek Olšák <[email protected]> | 2016-08-12 00:57:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-08-18 21:36:03 +0200 |
commit | 07ccec002b5631da7fa568a332bfb2143adb4f89 (patch) | |
tree | 189c57ad3421b02cc2687844bea690aa7e45bd70 /src/gallium | |
parent | d61d25951887a08fd6ea2a9d0db82d52813ce532 (diff) |
radeonsi: initialize and finalize the LLVM function pass manager
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 8076443f081..71f52fddbd3 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c @@ -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); |