nir/opt_algebraic: Optimize d3d9 pow with fmulz.
authorGeorg Lehmann <dadschoorse@gmail.com>
Fri, 19 Aug 2022 15:47:43 +0000 (17:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 17:07:24 +0000 (17:07 +0000)
commit6eb4dfca2344d123c1d7115e68d5a208ebbaba83
tree28a38ef6b249a150d1feac94612c114298bdf6e5
parent9c2c47884da939983a64d3b4db4838df2b874bdd
nir/opt_algebraic: Optimize d3d9 pow with fmulz.

Foz-DB Navi21:
Totals from 69 (0.05% of 134913) affected shaders:
CodeSize: 255684 -> 253788 (-0.74%); split: -0.74%, +0.00%
Instrs: 46307 -> 46052 (-0.55%); split: -0.55%, +0.00%
Latency: 533255 -> 530742 (-0.47%); split: -0.48%, +0.01%
InvThroughput: 110001 -> 109156 (-0.77%)
VClause: 839 -> 844 (+0.60%); split: -1.19%, +1.79%
SClause: 1411 -> 1395 (-1.13%)
Copies: 1828 -> 1816 (-0.66%); split: -1.09%, +0.44%
PreSGPRs: 2243 -> 2232 (-0.49%)
PreVGPRs: 2213 -> 2192 (-0.95%)

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18145>
src/compiler/nir/nir_opt_algebraic.py