From: Ian Romanick Date: Tue, 24 Mar 2020 18:18:02 +0000 (-0700) Subject: nir/algebraic: Remove a redundant fabs pattern X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b097e326b8b066d3697c79aec2c6c32c453757f9;p=mesa.git nir/algebraic: Remove a redundant fabs pattern Made redundant by 5544b2cbbd2 ("nir/algebraic: Use value range analysis to eliminate useless unary ops"). No shader-db changes on any Intel platform. Reviewed-by: Matt Turner Tested-by: Marge Bot Part-of: --- diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index bb490d2a19c..69f804783b2 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -109,7 +109,6 @@ optimizations = [ (('~fneg', ('fneg', a)), a), (('ineg', ('ineg', a)), a), - (('fabs', ('fabs', a)), ('fabs', a)), (('fabs', ('fneg', a)), ('fabs', a)), (('fabs', ('u2f', a)), ('u2f', a)), (('iabs', ('iabs', a)), ('iabs', a)),