[Mesa-dev] [PATCH 6/6] nir: Don't condition 'a-b < 0' -> 'a < b' on is_not_used_by_conditional

Matt Turner mattst88 at gmail.com
Fri Mar 23 18:39:44 UTC 2018


On Wed, Mar 21, 2018 at 5:58 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Now that i965 recognizes that a-b generates the same conditions as 'a <
> b', there is no reason to condition this transformation on 'is not used
> by conditional.'
>
> Since this was the only user of the is_not_used_by_conditional function,
> delete it.
>
> All Gen6+ platforms had similar results. (Skylake shown)
> total instructions in shared programs: 14400775 -> 14400595 (<.01%)
> instructions in affected programs: 36712 -> 36532 (-0.49%)
> helped: 182
> HURT: 26

Looked at why these are hurt? :)


More information about the mesa-dev mailing list