From: Erik Faye-Lund Date: Wed, 12 Feb 2020 11:48:37 +0000 (+0100) Subject: Revert "nir: Add a couple trivial abs optimizations" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c1ba69a27090d3ef000943b47468705fe0454c4;p=mesa.git Revert "nir: Add a couple trivial abs optimizations" These were already added in 9fdaeb7776c ("nir: add min/max optimisation"), and there's no point in doing them twice. This reverts commit e4d346c86db0ae332fcdf55eac0e075cfb99a7eb. Fixes: e4d346c86db ("nir: Add a couple trivial abs optimizations") Reviewed-by: Jason Ekstrand Reviewed-by: Ian Romanick 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 904b02e0309..94c8836cbf7 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -497,8 +497,6 @@ optimizations.extend([ (('umin', ('umin', a, b), b), ('umin', a, b)), (('imin', ('imin', a, b), b), ('imin', a, b)), (('iand@32', a, ('inot', ('ishr', a, 31))), ('imax', a, 0)), - (('fmax', a, ('fneg', a)), ('fabs', a)), - (('imax', a, ('ineg', a)), ('iabs', a)), (('fmin', a, ('fneg', a)), ('fneg', ('fabs', a))), (('imin', a, ('ineg', a)), ('ineg', ('iabs', a))), (('fmin', a, ('fneg', ('fabs', a))), ('fneg', ('fabs', a))),