From 417eb390c637f143fe2767ee48ec6335d3180278 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 30 Jan 2024 19:05:56 +0000 Subject: [PATCH] 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 Reviewed-by: Georg Lehmann Part-of: --- src/compiler/nir/nir_opt_algebraic.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index 63a4a13b16d..06b4a2111e6 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -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([