From: Jason Ekstrand Date: Wed, 1 Apr 2015 19:24:37 +0000 (-0700) Subject: nir/algebraic: Remove a duplicate optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1779dc060fa8d55d979f887e41f1ec2c793859b7;p=mesa.git nir/algebraic: Remove a duplicate optimization This optimization is repeated verbatim above Reviewed-by: Matt Turner --- diff --git a/src/glsl/nir/nir_opt_algebraic.py b/src/glsl/nir/nir_opt_algebraic.py index 190bd916efe..ddf78be7721 100644 --- a/src/glsl/nir/nir_opt_algebraic.py +++ b/src/glsl/nir/nir_opt_algebraic.py @@ -172,9 +172,6 @@ optimizations = [ (('iadd', a, ('isub', 0, b)), ('isub', a, b)), (('fabs', ('fsub', 0.0, a)), ('fabs', a)), (('iabs', ('isub', 0, a)), ('iabs', a)), - -# This one may not be exact - (('feq', ('fadd', a, b), 0.0), ('feq', a, ('fneg', b))), ] # Add optimizations to handle the case where the result of a ternary is