Mesa (master): nir/algebraic: Remove a redundant fabs pattern
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 1 00:48:44 UTC 2020
Module: Mesa
Branch: master
Commit: b097e326b8b066d3697c79aec2c6c32c453757f9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b097e326b8b066d3697c79aec2c6c32c453757f9
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Mar 24 11:18:02 2020 -0700
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 <mattst88 at gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1359>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1359>
---
src/compiler/nir/nir_opt_algebraic.py | 1 -
1 file changed, 1 deletion(-)
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)),
More information about the mesa-commit
mailing list