Re: [Mesa-dev] [PATCH 2/6] glsl: Split arrays even in the presence of whole-array copies.

2016-06-22 Thread Kenneth Graunke
On Wednesday, June 22, 2016 2:23:00 PM PDT Timothy Arceri wrote: > On Tue, 2016-06-21 at 20:02 -0700, Kenneth Graunke wrote: > > Previously, we failed to split constant arrays. Code such as > > > >int[2] numbers = int[](1, 2); > > > > would generates a whole-array assignment: > > > > (ass

Re: [Mesa-dev] [PATCH 2/6] glsl: Split arrays even in the presence of whole-array copies.

2016-06-21 Thread Timothy Arceri
On Tue, 2016-06-21 at 20:02 -0700, Kenneth Graunke wrote: > Previously, we failed to split constant arrays.  Code such as > >    int[2] numbers = int[](1, 2); > > would generates a whole-array assignment: > >   (assign () (var_ref numbers) >  (constant (array int 4) (constant int 1)

[Mesa-dev] [PATCH 2/6] glsl: Split arrays even in the presence of whole-array copies.

2016-06-21 Thread Kenneth Graunke
Previously, we failed to split constant arrays. Code such as int[2] numbers = int[](1, 2); would generates a whole-array assignment: (assign () (var_ref numbers) (constant (array int 4) (constant int 1) (constant int 2))) opt_array_splitting generally tried to visit ir_derefe