Re: [Mesa-dev] [PATCH 3/3] radeon/llvm: Use alloca instructions for larger arrays

2016-05-26 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Wed, May 25, 2016 at 2:35 PM, Tom Stellard wrote: > We were storing arrays in vectors, which was leading to some really bad > spill code for large arrays. allocas instructions are a better fit for

[Mesa-dev] [PATCH 3/3] radeon/llvm: Use alloca instructions for larger arrays

2016-05-25 Thread Tom Stellard
We were storing arrays in vectors, which was leading to some really bad spill code for large arrays. allocas instructions are a better fit for arrays and LLVM optimizations are more geared toward dealing with allocas instead of vectors. For arrays that have 16 or less 32-bit elements, we will