Author: Richard Plangger <planri...@gmail.com>
Branch: ppc-vsx-support
Changeset: r87304:2b045fa07844
Date: 2016-09-22 09:06 +0200
http://bitbucket.org/pypy/pypy/changeset/2b045fa07844/

Log:    translation issues

diff --git a/rpython/doc/jit/vectorization.rst 
b/rpython/doc/jit/vectorization.rst
--- a/rpython/doc/jit/vectorization.rst
+++ b/rpython/doc/jit/vectorization.rst
@@ -13,11 +13,6 @@
   (e.g. those in the NumPyPy module).
 * --jit vec_all=1: turns on the vectorization for any jit driver. See 
parameters for
   the filtering heuristics of traces.
-* --jit vec_ratio=2: A number from 0 to 10 that represents a real number 
(vec_ratio / 10).
-  This filters traces if vec_all is enabled. N is the trace count then the 
number of
-  vector transformable operations (add_int -> vec_add_int) M, the following 
must hold:
-  M / N >= (vec_ratio / 10)
-* --jit vec_length=60: The maximum number of trace instructions the vectorizer 
filters for.
 
 Features
 --------
diff --git a/rpython/jit/metainterp/optimizeopt/vector.py 
b/rpython/jit/metainterp/optimizeopt/vector.py
--- a/rpython/jit/metainterp/optimizeopt/vector.py
+++ b/rpython/jit/metainterp/optimizeopt/vector.py
@@ -186,10 +186,8 @@
         if op.is_primitive_array_access():
             at_least_one_array_access = True
 
-        if warmstate.vec_ratio > 0.0:
-            # blacklist
-            if rop.is_call(op.opnum) or rop.is_call_assembler(op.opnum):
-                return True
+        if rop.is_call(op.opnum) or rop.is_call_assembler(op.opnum):
+            return True
 
         if rop.is_guard(op.opnum):
             guard_count += 1
@@ -197,15 +195,6 @@
     if not at_least_one_array_access:
         return True
 
-    if resop_count > warmstate.vec_length:
-        return True
-
-    if (float(vector_instr)/float(resop_count)) < warmstate.vec_ratio:
-        return True
-
-    if float(guard_count)/float(resop_count) > warmstate.vec_guard_ratio:
-        return True
-
     return False
 
 class VectorizingOptimizer(Optimizer):
diff --git a/rpython/jit/metainterp/test/test_vector.py 
b/rpython/jit/metainterp/test/test_vector.py
--- a/rpython/jit/metainterp/test/test_vector.py
+++ b/rpython/jit/metainterp/test/test_vector.py
@@ -739,7 +739,7 @@
                 i += 1
             lltype.free(vector_a, flavor='raw')
             return breaks
-        res = self.meta_interp(f, [22], vec_all=True, vec_guard_ratio=5)
+        res = self.meta_interp(f, [22], vec_all=True)
         assert res == f(22)
 
     def run_unpack(self, unpack, vector_type, assignments, float=True):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to