summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-04-01 12:24:37 -0700
committerJason Ekstrand <[email protected]>2015-04-01 12:51:03 -0700
commit1779dc060fa8d55d979f887e41f1ec2c793859b7 (patch)
tree58315bbc645a531f0035f25b0e23c932807b7020 /src/glsl
parent22ee7eeb4e08ffdd8d53aa68e4d2b2c09f1721d0 (diff)
nir/algebraic: Remove a duplicate optimization
This optimization is repeated verbatim above Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir_opt_algebraic.py3
1 files changed, 0 insertions, 3 deletions
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