nir/opt_algebraic: add patterns for iand/ior of feq/fneu with 0
authorGeorg Lehmann <dadschoorse@gmail.com>
Mon, 27 Feb 2023 22:38:22 +0000 (23:38 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Mar 2023 11:24:43 +0000 (11:24 +0000)
commitaeb68c29b48f8b138e0eaa21cacec9e5712ca8ed
treebc3162a2fb6c7c26fe37a866412e91faad5c5b67
parent3ced4ae81611f93cca6cf8d86b89e1578eb5e51b
nir/opt_algebraic: add patterns for iand/ior of feq/fneu with 0

Foz-DB Navi21:
Totals from 1245 (0.92% of 134913) affected shaders:
VGPRs: 66232 -> 66248 (+0.02%); split: -0.01%, +0.04%
CodeSize: 5874976 -> 5868168 (-0.12%); split: -0.17%, +0.05%
MaxWaves: 25278 -> 25274 (-0.02%); split: +0.01%, -0.02%
Instrs: 1087502 -> 1085267 (-0.21%); split: -0.21%, +0.00%
Latency: 6531489 -> 6531672 (+0.00%); split: -0.04%, +0.05%
InvThroughput: 1531774 -> 1532327 (+0.04%); split: -0.02%, +0.05%
VClause: 22218 -> 22202 (-0.07%); split: -0.08%, +0.00%
SClause: 45906 -> 45873 (-0.07%); split: -0.08%, +0.01%
Copies: 64004 -> 64102 (+0.15%); split: -0.24%, +0.39%
Branches: 21529 -> 21534 (+0.02%); split: -0.00%, +0.03%
PreSGPRs: 51936 -> 51850 (-0.17%)
PreVGPRs: 55393 -> 55398 (+0.01%); split: -0.02%, +0.03%

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21576>
src/compiler/nir/nir_opt_algebraic.py