[pypy-commit] pypy default: unroll find_result_type if the arrays are either virtual or small
fijal
noreply at buildbot.pypy.org
Fri Oct 16 05:38:30 EDT 2015
Author: fijal
Branch:
Changeset: r80264:30212baeb975
Date: 2015-10-16 11:38 +0200
http://bitbucket.org/pypy/pypy/changeset/30212baeb975/
Log: unroll find_result_type if the arrays are either virtual or small
diff --git a/pypy/module/micronumpy/casting.py b/pypy/module/micronumpy/casting.py
--- a/pypy/module/micronumpy/casting.py
+++ b/pypy/module/micronumpy/casting.py
@@ -38,7 +38,9 @@
dtypes_w.append(dtype)
return find_result_type(space, arrays_w, dtypes_w)
-
+ at jit.look_inside_iff(lambda space, arrays_w, dtypes_w:
+ jit.loop_unrolling_heuristic(arrays_w) and
+ jit.loop_unrolling_heuristic(dtypes_w))
def find_result_type(space, arrays_w, dtypes_w):
# equivalent to PyArray_ResultType
if len(arrays_w) == 1 and not dtypes_w:
More information about the pypy-commit
mailing list