nir/opt_algebraic: Simple xor/ishr optimizations.
authorGeorg Lehmann <dadschoorse@gmail.com>
Mon, 9 May 2022 09:52:26 +0000 (11:52 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 19:29:31 +0000 (19:29 +0000)
commit60c9a45562255499a1adfe0983fcace3ea690d2a
tree0385824697e117ae899b7b6bdb1acd21d13e28b6
parent66e917fff69497143ebf6593a40891ea3d1daf93
nir/opt_algebraic: Simple xor/ishr optimizations.

The first pattern here removes the xor-swap pattern.

Foz-DB GFX10_3:
Totals from 305 (0.23% of 134913) affected shaders:
CodeSize: 1589040 -> 1585164 (-0.24%)
Instrs: 284344 -> 283375 (-0.34%)
Latency: 4205148 -> 4198472 (-0.16%); split: -0.16%, +0.00%
InvThroughput: 708745 -> 708739 (-0.00%)

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16411>
src/compiler/nir/nir_opt_algebraic.py