[Mesa-dev] [PATCH 08/10] nir: add another comparison simplification
Jason Ekstrand
jason at jlekstrand.net
Sat Jan 7 15:50:23 UTC 2017
Rb
On Jan 7, 2017 4:00 AM, "Timothy Arceri" <timothy.arceri at collabora.com>
wrote:
> On BDW:
>
> total instructions in shared programs: 13061877 -> 13060965 (-0.01%)
> instructions in affected programs: 133569 -> 132657 (-0.68%)
> helped: 566
> HURT: 0
>
> total cycles in shared programs: 256611784 -> 256599536 (-0.00%)
> cycles in affected programs: 861016 -> 848768 (-1.42%)
> helped: 379
> HURT: 73
> ---
> src/compiler/nir/nir_opt_algebraic.py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/compiler/nir/nir_opt_algebraic.py
> b/src/compiler/nir/nir_opt_algebraic.py
> index 7cee378..eaeca5e 100644
> --- a/src/compiler/nir/nir_opt_algebraic.py
> +++ b/src/compiler/nir/nir_opt_algebraic.py
> @@ -151,6 +151,8 @@ optimizations = [
> # inot(a)
> (('fge', 0.0, ('b2f', a)), ('inot', a)),
>
> + (('fge', ('fneg', ('b2f', a)), 0.0), ('inot', a)),
> +
> # -(b2f(a) + b2f(b)) >= 0 becomes !(a || b)
> (('fge', ('fneg', ('fadd', ('b2f', a), ('b2f', b))), 0.0), ('inot',
> ('ior', a, b))),
>
> --
> 2.9.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170107/dc417994/attachment.html>
More information about the mesa-dev
mailing list