Re: [Mesa-dev] [PATCH] radv: setup llvm target data layout

2017-03-13 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Mon, Mar 13, 2017 at 9:52 PM, Dave Airlie wrote: > From: Dave Airlie > > Ported from radeonsi, pointed out by Tom. > > "This prevents LLVM from using sext instructions for local memory > offsets

Re: [Mesa-dev] [PATCH] radv: setup llvm target data layout

2017-03-13 Thread Tom Stellard
On Tue, Mar 14, 2017 at 06:52:19AM +1000, Dave Airlie wrote: > From: Dave Airlie > > Ported from radeonsi, pointed out by Tom. > > "This prevents LLVM from using sext instructions for local memory > offsets and allows the backend to fold immediate offsets into the >

[Mesa-dev] [PATCH] radv: setup llvm target data layout

2017-03-13 Thread Dave Airlie
From: Dave Airlie Ported from radeonsi, pointed out by Tom. "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