[pypy-issue] [issue851] PyPy does not optimize division into shifts
anon
tracker at bugs.pypy.org
Mon Aug 29 06:41:09 CEST 2011
New submission from anon <b10419697 at klzlk.com>:
When dividing integers by powers of two, PyPy does not optimize the division
into a binary shift.
for i in range(10**8):
j = i//2
can be written as
for i in range(10**8):
j = i>>1
since we know i is an integer.
----------
messages: 3044
nosy: anon, pypy-issue
priority: wish
status: unread
title: PyPy does not optimize division into shifts
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue851>
________________________________________
More information about the pypy-issue
mailing list