From e4188ee13d7101657e7e9c91ee9ade3b98953c9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Wed, 27 Feb 2013 22:39:26 +0100 Subject: [PATCH] radeonsi: add LLVMNoUnwindAttribute to intrinsic MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit So LLVM can better eliminate dead code. Signed-off-by: Christian König Reviewed-by: Tom Stellard --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index 144e0e036e6..95ccd1ef17e 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.c +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c @@ -431,7 +431,7 @@ static void si_llvm_init_export_args(struct lp_build_tgsi_context *bld_base, "llvm.SI.packf16", LLVMInt32TypeInContext(base->gallivm->context), args, 2, - LLVMReadNoneAttribute); + LLVMReadNoneAttribute | LLVMNoUnwindAttribute); args[chan + 7] = args[chan + 5] = LLVMBuildBitCast(base->gallivm->builder, args[chan + 5], -- 2.30.2