mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
nir/opt_algebraic: optimize more ine/ieq(umin(b2i, ), 0)
Foz-DB Navi21: Totals from 76 (0.10% of 79789) affected shaders: MaxWaves: 1050 -> 1062 (+1.14%) Instrs: 113754 -> 113691 (-0.06%); split: -0.11%, +0.06% CodeSize: 605096 -> 605216 (+0.02%); split: -0.03%, +0.05% VGPRs: 6024 -> 5976 (-0.80%) Latency: 1776501 -> 1777519 (+0.06%); split: -0.06%, +0.12% InvThroughput: 379644 -> 376751 (-0.76%) SClause: 2132 -> 2134 (+0.09%) Copies: 4131 -> 4128 (-0.07%); split: -1.77%, +1.69% PreSGPRs: 4275 -> 4270 (-0.12%) PreVGPRs: 5568 -> 5526 (-0.75%) VALU: 86732 -> 86581 (-0.17%); split: -0.24%, +0.07% SALU: 7112 -> 7198 (+1.21%) Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33761>
This commit is contained in:
parent
7bc3062a3b
commit
2e7f34af6b
1 changed files with 6 additions and 0 deletions
|
|
@ -1799,6 +1799,12 @@ optimizations.extend([
|
|||
|
||||
(('ine', ('umin', ('ineg', ('b2i', 'a@1')), b), 0), ('iand', a, ('ine', b, 0))),
|
||||
(('ine', ('umax', ('ineg', ('b2i', 'a@1')), b), 0), ('ior' , a, ('ine', b, 0))),
|
||||
(('ine', ('umin', ('b2i', 'a@1'), b), 0), ('iand', a, ('ine', b, 0))),
|
||||
(('ine', ('umax', ('b2i', 'a@1'), b), 0), ('ior' , a, ('ine', b, 0))),
|
||||
(('ieq', ('umin', ('ineg', ('b2i', 'a@1')), b), 0), ('ior', ('inot', a), ('ieq', b, 0))),
|
||||
(('ieq', ('umax', ('ineg', ('b2i', 'a@1')), b), 0), ('iand' , ('inot', a), ('ieq', b, 0))),
|
||||
(('ieq', ('umin', ('b2i', 'a@1'), b), 0), ('ior', ('inot', a), ('ieq', b, 0))),
|
||||
(('ieq', ('umax', ('b2i', 'a@1'), b), 0), ('iand' , ('inot', a), ('ieq', b, 0))),
|
||||
|
||||
# Conversions
|
||||
(('f2i', ('ftrunc', a)), ('f2i', a)),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue