From: Jason Ekstrand Date: Wed, 23 Mar 2016 21:25:56 +0000 (-0700) Subject: nir/algebraic: Get rid of an invlid fxor optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89545b13141053cf12a10e5357aa82031e8419ed;p=mesa.git nir/algebraic: Get rid of an invlid fxor optimization 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 --- diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index d788b7b1a0c..ec6c6338bb1 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -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