mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 01:00:17 +01:00
nir/opt_algebraic: optimize dxbc boolean not
Foz-DB Navi21: Totals from 237 (0.30% of 79377) affected shaders: Instrs: 486690 -> 486146 (-0.11%); split: -0.11%, +0.00% CodeSize: 2629516 -> 2626052 (-0.13%); split: -0.13%, +0.00% VGPRs: 18744 -> 18736 (-0.04%) Latency: 7404763 -> 7399806 (-0.07%); split: -0.07%, +0.01% InvThroughput: 1800282 -> 1798388 (-0.11%); split: -0.11%, +0.00% VClause: 12101 -> 12106 (+0.04%); split: -0.01%, +0.05% Copies: 34225 -> 34170 (-0.16%); split: -0.21%, +0.05% PreSGPRs: 14634 -> 14639 (+0.03%) PreVGPRs: 16713 -> 16706 (-0.04%) VALU: 317523 -> 316693 (-0.26%); split: -0.26%, +0.00% SALU: 53814 -> 54097 (+0.53%); split: -0.38%, +0.90% Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33498>
This commit is contained in:
parent
f9722e35be
commit
1e522e7d75
1 changed files with 2 additions and 0 deletions
|
|
@ -1473,6 +1473,8 @@ optimizations.extend([
|
|||
(('bcsel', a, ('ineg', ('b2i', 'b@1')), -1), ('ineg', ('b2i', ('bcsel', a, b, True)))),
|
||||
(('bcsel', a, 0, ('ineg', ('b2i', 'b@1'))), ('ineg', ('b2i', ('bcsel', a, False, b)))),
|
||||
(('bcsel', a, -1, ('ineg', ('b2i', 'b@1'))), ('ineg', ('b2i', ('bcsel', a, True, b)))),
|
||||
|
||||
(('inot', ('ineg', ('b2i', a))), ('ineg', ('b2i', ('inot', a)))),
|
||||
])
|
||||
|
||||
for op in ('ior', 'iand', 'ixor'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue