Re: [Mesa-dev] [PATCH] radeonsi: Set datalayout on the llvm module

2016-12-16 Thread Nicolai Hähnle
On 15.12.2016 19:11, Tom Stellard wrote: This prevents LLVM from using sext instructions for local memory offsets and allows the backend to fold immediate offsets into the instruction. This also prevents some incorrect code generation for ptrtoint and inttoptr instructions. Reviewed-by: Nicola

[Mesa-dev] [PATCH] radeonsi: Set datalayout on the llvm module

2016-12-15 Thread Tom Stellard
This prevents LLVM from using sext instructions for local memory offsets and allows the backend to fold immediate offsets into the instruction. This also prevents some incorrect code generation for ptrtoint and inttoptr instructions. --- src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 6 +++