[pypy-commit] pypy default: a more questionable unrolling here

fijal noreply at buildbot.pypy.org
Wed Apr 16 15:14:27 CEST 2014


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r70654:054e2cc2266a
Date: 2014-04-16 15:13 +0200
http://bitbucket.org/pypy/pypy/changeset/054e2cc2266a/

Log:	a more questionable unrolling here

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -442,6 +442,7 @@
         return v1 % v2
 
     @simple_binary_op
+    @jit.unroll_iff(lambda self, v1, v2: jit.isconstant(v2))
     def pow(self, v1, v2):
         if v2 < 0:
             return 0


More information about the pypy-commit mailing list