aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/compiler/nir/nir_opt_algebraic.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py
index 9ead2dd37d5..c1ab9dd3c83 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -173,6 +173,9 @@ optimizations = [
(('fne', ('fmul', ('b2f', a), ('b2f', b)), 0.0), ('iand', a, b)),
(('fne', ('fmin', ('b2f', a), ('b2f', b)), 0.0), ('iand', a, b)),
(('fne', ('bcsel', a, ('b2f', b), 0.0) , 0.0), ('iand', a, b)),
+ (('fne', ('fadd', ('b2f', a), ('fneg', ('b2f', b))), 0.0), ('ixor', a, b)),
+ (('fne', ('b2f', a) , ('b2f', b) ), ('ixor', a, b)),
+ (('fne', ('fneg', ('b2f', a)), ('fneg', ('b2f', b))), ('ixor', a, b)),
(('feq', ('fadd', ('b2f', a), ('b2f', b)), 0.0), ('inot', ('ior', a, b))),
(('feq', ('fmax', ('b2f', a), ('b2f', b)), 0.0), ('inot', ('ior', a, b))),
(('feq', ('bcsel', a, 1.0, ('b2f', b)) , 0.0), ('inot', ('ior', a, b))),