Patch 1, 3, 4 are Reviewed-by: Bas Nieuwenhuizen <[email protected]>
On Wed, Jan 24, 2018 at 11:26 PM, Samuel Pitoiset <[email protected] > wrote: > This attribute is similar to the definition of restrict in > C99 and it might help LLVM. > > Signed-off-by: Samuel Pitoiset <[email protected]> > --- > src/amd/common/ac_nir_to_llvm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_ > llvm.c > index 66203fa4ba..f9ce4feb61 100644 > --- a/src/amd/common/ac_nir_to_llvm.c > +++ b/src/amd/common/ac_nir_to_llvm.c > @@ -326,6 +326,7 @@ create_llvm_function(LLVMContextRef ctx, > LLVMModuleRef module, > if (args->array_params_mask & (1 << i)) { > LLVMValueRef P = LLVMGetParam(main_function, i); > ac_add_function_attr(ctx, main_function, i + 1, > AC_FUNC_ATTR_BYVAL); > + ac_add_function_attr(ctx, main_function, i + 1, > AC_FUNC_ATTR_NOALIAS); > ac_add_attr_dereferenceable(P, UINT64_MAX); > } > else { > -- > 2.16.0 > > _______________________________________________ > mesa-dev mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/mesa-dev >
_______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
