Author: Squeaky <[email protected]>
Branch: optimize-int-and
Changeset: r69173:0ccecf7a9518
Date: 2014-02-16 11:30 +0100
http://bitbucket.org/pypy/pypy/changeset/0ccecf7a9518/
Log: cosmetic tweak to get(array|field)
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
@@ -342,7 +342,7 @@
if descr.is_integer_bounded():
v1 = self.getvalue(op.result)
v1.intbound.make_ge(IntLowerBound(descr.get_integer_min()))
- v1.intbound.make_lt(IntUpperBound(descr.get_integer_max() + 1))
+ v1.intbound.make_le(IntUpperBound(descr.get_integer_max()))
optimize_GETFIELD_GC = optimize_GETFIELD_RAW
@@ -354,8 +354,7 @@
if descr and descr.is_item_integer_bounded():
v1 = self.getvalue(op.result)
v1.intbound.make_ge(IntLowerBound(descr.get_item_integer_min()))
- v1.intbound.make_lt(
- IntUpperBound(descr.get_item_integer_max() + 1))
+ v1.intbound.make_le(IntUpperBound(descr.get_item_integer_max()))
optimize_GETARRAYITEM_GC = optimize_GETARRAYITEM_RAW
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit