Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: intbound-improvements
Changeset: r93272:65738a183cd1
Date: 2017-12-03 19:57 +0100
http://bitbucket.org/pypy/pypy/changeset/65738a183cd1/
Log: fix typo
diff --git a/rpython/jit/metainterp/optimizeopt/intbounds.py
b/rpython/jit/metainterp/optimizeopt/intbounds.py
--- a/rpython/jit/metainterp/optimizeopt/intbounds.py
+++ b/rpython/jit/metainterp/optimizeopt/intbounds.py
@@ -207,6 +207,7 @@
r = self.getintbound(op)
b = b1.lshift_bound(b2)
r.intersect(b)
+ print op, r
# intbound.lshift_bound checks for an overflow and if the
# lshift can be proven not to overflow sets b.has_upper and
# b.has_lower
diff --git a/rpython/jit/metainterp/optimizeopt/intutils.py
b/rpython/jit/metainterp/optimizeopt/intutils.py
--- a/rpython/jit/metainterp/optimizeopt/intutils.py
+++ b/rpython/jit/metainterp/optimizeopt/intutils.py
@@ -49,7 +49,7 @@
# Returns True if the bound was updated
def make_le(self, other):
if other.has_upper:
- self.make_le_const(other.upper)
+ return self.make_le_const(other.upper)
return False
def make_lt(self, other):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit