nir/algebraic: Get rid of an invlid fxor optimization
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Mar 2016 21:25:56 +0000 (14:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Mar 2016 23:27:58 +0000 (16:27 -0700)
The fxor opcode is required to return 1.0f or 0.0f but the input variable
may not be 1.0f or 0.0f.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/compiler/nir/nir_opt_algebraic.py

index d788b7b..ec6c633 100644 (file)
@@ -176,7 +176,6 @@ optimizations = [
    (('ior', a, 0), a),
    (('fxor', a, a), 0.0),
    (('ixor', a, a), 0),
-   (('fxor', a, 0.0), a),
    (('ixor', a, 0), a),
    (('inot', ('inot', a)), a),
    # DeMorgan's Laws