diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index 8c999042e92..6a6d6d997fd 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -1480,6 +1480,9 @@ optimizations.extend([ ('iand', ('ishl', -1, b), ('ineg', ('b2i', a)))), (('ushr', ('ineg', ('b2i', a)), '#b'), ('iand', ('ushr', -1, b), ('ineg', ('b2i', a)))), + + (('ine', ('b2i', 'a@1'), ('ineg', ('b2i', 'b@1'))), ('ior', a, b)), + (('ieq', ('b2i', 'a@1'), ('ineg', ('b2i', 'b@1'))), ('inot', ('ior', a, b))), ]) for op in ('ior', 'iand', 'ixor'):