Re: [Mesa-dev] [PATCH 15/23] glsl: Distribute binary operations over ir_triop_csel

2015-03-20 Thread Ian Romanick
On 03/20/2015 03:09 PM, Matt Turner wrote: > On Fri, Mar 20, 2015 at 1:58 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> If the both result operands of the ir_triop_csel are constants and the >> other operand of the binary operation is constant, distributing the >> unary operation allows con

Re: [Mesa-dev] [PATCH 15/23] glsl: Distribute binary operations over ir_triop_csel

2015-03-20 Thread Matt Turner
On Fri, Mar 20, 2015 at 1:58 PM, Ian Romanick wrote: > From: Ian Romanick > > If the both result operands of the ir_triop_csel are constants and the > other operand of the binary operation is constant, distributing the > unary operation allows constant folding to eliminate it. > > Shader-db resul

[Mesa-dev] [PATCH 15/23] glsl: Distribute binary operations over ir_triop_csel

2015-03-20 Thread Ian Romanick
From: Ian Romanick If the both result operands of the ir_triop_csel are constants and the other operand of the binary operation is constant, distributing the unary operation allows constant folding to eliminate it. Shader-db results: GM45 (0x2A42): total instructions in shared programs: 3545351