[Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

Matt Turner mattst88 at gmail.com
Fri Apr 17 14:05:14 PDT 2015


On Fri, Apr 17, 2015 at 2:02 PM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> What made the difference here?

I think it's probably just that

commit 4dacb212fdcc82def02b8c9233f94caa5a8a3000
Author: Matt Turner <mattst88 at gmail.com>
Date:   Thu Apr 2 10:21:16 2015 -0700

    nir: Allow abs/neg in select peephole pass.

    total instructions in shared programs: 4314531 -> 4308949 (-0.13%)
    instructions in affected programs:     429085 -> 423503 (-1.30%)
    helped:                                1680
    HURT:                                  0
    GAINED:                                0
    LOST:                                  111

    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

lost all of the SIMD16 programs that this commit was losing. :)


More information about the mesa-dev mailing list