[pypy-commit] pypy default: I never get those right
fijal
noreply at buildbot.pypy.org
Mon Dec 1 15:13:08 CET 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r74775:739ecaa8a1c0
Date: 2014-12-01 16:12 +0200
http://bitbucket.org/pypy/pypy/changeset/739ecaa8a1c0/
Log: I never get those right
diff --git a/rpython/rtyper/rlist.py b/rpython/rtyper/rlist.py
--- a/rpython/rtyper/rlist.py
+++ b/rpython/rtyper/rlist.py
@@ -984,13 +984,13 @@
# Comparison.
def listeq_unroll_case(l1, l2, eqfn):
- if jit.isvirtual(l1) and len(l1) < 10:
+ if jit.isvirtual(l1) and l1.ll_length() < 10:
return True
- if jit.isvirtual(l2) and len(l2) < 10:
+ if jit.isvirtual(l2) and l2.ll_length() < 10:
return True
return False
- at jit.unroll_iff(listeq_unroll_case)
+ at jit.look_inside_iff(listeq_unroll_case)
def ll_listeq(l1, l2, eqfn):
if not l1 and not l2:
return True
More information about the pypy-commit
mailing list