Mesa (master): nir/opt_algebraic: Simplify an optimization using the new search ops

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 5 21:35:36 UTC 2018


Module: Mesa
Branch: master
Commit: ff8e3d3b7bc9f57b831e048e9a78e456dc0a4be5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff8e3d3b7bc9f57b831e048e9a78e456dc0a4be5

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov  7 16:25:31 2018 -0600

nir/opt_algebraic: Simplify an optimization using the new search ops

Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>

---

 src/compiler/nir/nir_opt_algebraic.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py
index f2a7be0c40..27c90cebae 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -762,13 +762,8 @@ for x, y in itertools.product(['f', 'u', 'i'], ['f', 'u', 'i']):
 
    b2x = 'b2f' if x == 'f' else 'b2i'
    b2y = 'b2f' if y == 'f' else 'b2i'
-
-   for N in [8, 16, 32, 64]:
-      if y == 'f' and N == 8:
-         continue
-
-      x2yN = '{}2{}{}'.format(x, y, N)
-      optimizations.append(((x2yN, (b2x, a)), (b2y, a)))
+   x2yN = '{}2{}'.format(x, y)
+   optimizations.append(((x2yN, (b2x, a)), (b2y, a)))
 
 def fexp2i(exp, bits):
    # We assume that exp is already in the right range.




More information about the mesa-commit mailing list