Commit 0c1ba69a authored by Erik Faye-Lund 's avatar Erik Faye-Lund Committed by Marge Bot
Browse files

Revert "nir: Add a couple trivial abs optimizations"

These were already added in 9fdaeb77 ("nir: add min/max optimisation"),
and there's no point in doing them twice.

This reverts commit e4d346c8.

Fixes: e4d346c8

 ("nir: Add a couple trivial abs optimizations")
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Tested-by: Marge Bot <mesa/mesa!3786>
Part-of: <mesa/mesa!3786>
parent fdd20be3
......@@ -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))),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment