From: Christian König Date: Wed, 27 Feb 2013 21:39:26 +0000 (+0100) Subject: radeonsi: add LLVMNoUnwindAttribute to intrinsic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4188ee13d7101657e7e9c91ee9ade3b98953c9f;p=mesa.git radeonsi: add LLVMNoUnwindAttribute to intrinsic So LLVM can better eliminate dead code. Signed-off-by: Christian König Reviewed-by: Tom Stellard --- 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],