[Mesa-dev] [PATCH B 09/14] nir/opt_algebraic: Simplify an optimization using the new search ops

Jason Ekstrand jason at jlekstrand.net
Fri Nov 9 03:48:47 UTC 2018


---
 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 8b24daddfdc..cda0aaf17f5 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -760,13 +760,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.
-- 
2.19.1



More information about the mesa-dev mailing list