From: Christian König <christian.koe...@amd.com>

So LLVM can better eliminate dead code.

Signed-off-by: Christian König <christian.koe...@amd.com>
---
 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 144e0e0..95ccd1e 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],
-- 
1.7.9.5

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to