radeonsi: set noalias on input shader pointers
authorMarek Olšák <marek.olsak@amd.com>
Fri, 24 Feb 2017 22:14:35 +0000 (23:14 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 3 Mar 2017 14:29:30 +0000 (15:29 +0100)
src/gallium/drivers/radeonsi/si_shader.c

index 4fa46d4ff17a420d988453cd476cc41d386f1dfb..75567af778eb6c708cb8c719636502422ee24f6d 100644 (file)
@@ -5152,6 +5152,7 @@ static void si_create_function(struct si_shader_context *ctx,
                 */
                if (LLVMGetTypeKind(LLVMTypeOf(P)) == LLVMPointerTypeKind) {
                        lp_add_function_attr(ctx->main_fn, i + 1, LP_FUNC_ATTR_BYVAL);
+                       lp_add_function_attr(ctx->main_fn, i + 1, LP_FUNC_ATTR_NOALIAS);
                        lp_add_attr_dereferenceable(P, UINT64_MAX);
                } else
                        lp_add_function_attr(ctx->main_fn, i + 1, LP_FUNC_ATTR_INREG);