nir/algebraic: remove duplicated iand(ien, ine)/ior(ieq, ieq) patterns

These don't seem useful, since they're already done in the early optimizations.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27335>
This commit is contained in:
Rhys Perry 2024-01-30 19:05:56 +00:00 committed by Marge Bot
parent 6952bb359c
commit 417eb390c6

View file

@ -3255,17 +3255,6 @@ late_optimizations += [
(('insert_u16', ('extract_u16', 'a', 0), b), ('insert_u16', a, b)),
]
# Integer sizes
for s in [8, 16, 32, 64]:
lower_umin = 'options->lower_umin'
if s == 64:
lower_umin = '(options->lower_umin || (options->lower_int64_options & nir_lower_minmax64) != 0)'
late_optimizations.extend([
(('iand', ('ine(is_used_once)', 'a@{}'.format(s), 0), ('ine', 'b@{}'.format(s), 0)), ('ine', ('umin', a, b), 0), '!'+lower_umin),
(('ior', ('ieq(is_used_once)', 'a@{}'.format(s), 0), ('ieq', 'b@{}'.format(s), 0)), ('ieq', ('umin', a, b), 0), '!'+lower_umin),
])
# Float sizes
for s in [16, 32, 64]:
late_optimizations.extend([