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

Matt Turner mattst88 at gmail.com
Fri Mar 20 15:09:45 PDT 2015


On Fri, Mar 20, 2015 at 1:58 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> 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 -> 3545378 (0.00%)
> instructions in affected programs:     28774 -> 28801 (0.09%)
> helped:                                59
> HURT:                                  65

Odd.


More information about the mesa-dev mailing list