[Mesa-dev] [PATCH 6/7] radeonsi: add LLVMNoUnwindAttribute to intrinsic
Christian König
deathsimple at vodafone.de
Tue Mar 5 06:27:24 PST 2013
From: Christian König <christian.koenig at amd.com>
So LLVM can better eliminate dead code.
Signed-off-by: Christian König <christian.koenig at 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
More information about the mesa-dev
mailing list