Re: [Mesa-dev] [PATCH v2] glsl: Add a CSE pass.

2013-10-30 Thread Paul Berry
On 28 October 2013 14:19, Eric Anholt wrote: > This only operates on constant/uniform values for now, because otherwise > I'd > have to deal with killing my available CSE entries when assignments happen, > and getting even this working in the tree ir was painful enough. > > As is, it has the foll

[Mesa-dev] [PATCH v2] glsl: Add a CSE pass.

2013-10-28 Thread Eric Anholt
This only operates on constant/uniform values for now, because otherwise I'd have to deal with killing my available CSE entries when assignments happen, and getting even this working in the tree ir was painful enough. As is, it has the following effect in shader-db: total instructions in shared p