Mesa (master): radeonsi: initialize and finalize the LLVM function pass manager
Marek Olšák
mareko at kemper.freedesktop.org
Thu Aug 18 19:36:14 UTC 2016
Module: Mesa
Branch: master
Commit: 07ccec002b5631da7fa568a332bfb2143adb4f89
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=07ccec002b5631da7fa568a332bfb2143adb4f89
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Aug 12 00:57:30 2016 +0200
radeonsi: initialize and finalize the LLVM function pass manager
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
---
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
index 8076443..71f52fd 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);
More information about the mesa-commit
mailing list