radeonsi: add LLVMNoUnwindAttribute to intrinsic
authorChristian König <christian.koenig@amd.com>
Wed, 27 Feb 2013 21:39:26 +0000 (22:39 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 7 Mar 2013 09:03:22 +0000 (10:03 +0100)
So LLVM can better eliminate dead code.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index 144e0e036e6ae88b532a904478e6dc688f18f1a3..95ccd1ef17e0e0591901b5f5533a087be7c4fed9 100644 (file)
@@ -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],