Author: Alex Gaynor <[email protected]>
Branch: python-loop-unroll
Changeset: r64690:8269bf49d99c
Date: 2013-05-29 09:31 -0700
http://bitbucket.org/pypy/pypy/changeset/8269bf49d99c/

Log:    reorder condition so the constant foldable part goes first

diff --git a/pypy/module/pypyjit/interp_jit.py 
b/pypy/module/pypyjit/interp_jit.py
--- a/pypy/module/pypyjit/interp_jit.py
+++ b/pypy/module/pypyjit/interp_jit.py
@@ -92,7 +92,7 @@
             jumpto = r_uint(self.last_instr)
         #
         lastblock = self.lastblock
-        if not (isinstance(lastblock, LoopBlock) and lastblock.should_unroll 
and we_are_jitted()):
+        if not (we_are_jitted() and isinstance(lastblock, LoopBlock) and 
lastblock.should_unroll):
             pypyjitdriver.can_enter_jit(frame=self, ec=ec, next_instr=jumpto,
                                         pycode=self.getcode(),
                                         
is_being_profiled=self.is_being_profiled)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to