aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Friedrich Bolz <cfbolz@gmx.de>2010-10-30 09:52:36 +0000
committerCarl Friedrich Bolz <cfbolz@gmx.de>2010-10-30 09:52:36 +0000
commitbbc276fd5fdcc37c27f824dc335b463969850627 (patch)
tree8c91e0a6ce3ebf80a16b9dd7092f3e3d68781bf2 /pypy/jit/metainterp/optimizeopt/unroll.py
parent(hakanardo, cfbolz) a test to try to understand how unrolling works with delayed (diff)
downloadpypy-bbc276fd5fdcc37c27f824dc335b463969850627.tar.gz
pypy-bbc276fd5fdcc37c27f824dc335b463969850627.tar.bz2
pypy-bbc276fd5fdcc37c27f824dc335b463969850627.zip
(hakanardo, cfbolz): an XXX and a typo
Diffstat (limited to 'pypy/jit/metainterp/optimizeopt/unroll.py')
-rw-r--r--pypy/jit/metainterp/optimizeopt/unroll.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pypy/jit/metainterp/optimizeopt/unroll.py b/pypy/jit/metainterp/optimizeopt/unroll.py
index 2ff41f3957..77633a89a3 100644
--- a/pypy/jit/metainterp/optimizeopt/unroll.py
+++ b/pypy/jit/metainterp/optimizeopt/unroll.py
@@ -4,7 +4,7 @@ from pypy.jit.metainterp.compile import ResumeGuardDescr
from pypy.jit.metainterp.resume import Snapshot
class OptUnroll(Optimization):
- """Unroll the loop into two itterations. The first one will
+ """Unroll the loop into two iterations. The first one will
become the preamble or entry bridge (don't think there is a
distinction anymore)"""
@@ -43,7 +43,7 @@ class OptUnroll(Optimization):
for v in self.optimizer.values.values():
v.last_guard_index = -1 # FIXME: Are there any more indexes stored?
if not v.is_constant() and v.box:
- v.fromstart = True
+ v.fromstart = True # XXX do we really need to use an attribute?
for op in self.optimizer.pure_operations.values():
v = self.getvalue(op.result)