[Mesa-dev] [PATCH 16/16] i965: Convert CMP.GE -(abs)reg 0 -> CMP.Z reg 0.

Matt Turner mattst88 at gmail.com
Tue Jan 20 15:12:15 PST 2015


On Mon, Jan 19, 2015 at 8:08 PM, Ian Romanick <idr at freedesktop.org> wrote:
> On 01/19/2015 03:31 PM, Matt Turner wrote:
>> total instructions in shared programs: 5952059 -> 5951603 (-0.01%)
>> instructions in affected programs:     138812 -> 138356 (-0.33%)
>> GAINED:                                1
>> LOST:                                  0
>
> Does the "glsl: Rewrite (-abs(x) >= 0) as (x == 0)" patch in my
> bool-optimizations-v2 tree achieve the same thing?

I have a memory of writing that patch at some point in the past and
discovering that it wasn't able to get rid of everything because of
annoying tree grafting problems.


More information about the mesa-dev mailing list