[pypy-svn] pypy jit-unroll-loops: rpythonized

hakanardo commits-noreply at bitbucket.org
Tue Jan 4 21:59:47 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-unroll-loops
Changeset: r40401:9fcb6d0ff82b
Date: 2011-01-04 21:59 +0100
http://bitbucket.org/pypy/pypy/changeset/9fcb6d0ff82b/

Log:	rpythonized

diff --git a/pypy/jit/metainterp/optimizeopt/optimizer.py b/pypy/jit/metainterp/optimizeopt/optimizer.py
--- a/pypy/jit/metainterp/optimizeopt/optimizer.py
+++ b/pypy/jit/metainterp/optimizeopt/optimizer.py
@@ -120,9 +120,12 @@
             box = self.box
             assert isinstance(box, Const)
             return box.nonnull()
-        elif self.intbound.known_gt(IntBound(0, 0)) or \
-             self.intbound.known_lt(IntBound(0, 0)):
-            return True
+        elif self.intbound:
+            if self.intbound.known_gt(IntBound(0, 0)) or \
+               self.intbound.known_lt(IntBound(0, 0)):
+                return True
+            else:
+                return False
         else:
             return False
 


More information about the Pypy-commit mailing list